Title: [134324] trunk/Source/WebKit2
Revision
134324
Author
[email protected]
Date
2012-11-12 16:21:41 -0800 (Mon, 12 Nov 2012)

Log Message

Add a RemoteLayerTreeHost object in the UI process
https://bugs.webkit.org/show_bug.cgi?id=101999

Reviewed by Tim Horton.

Add a (mostly empty) RemoteLayerTreeHost class that will live in the UI process and host the layer tree.

* DerivedSources.make:
Add RemoteLayerTreeHost.messages.in.

* Platform/CoreIPC/MessageID.h:
Add a RemoteLayerTreeHost message class.

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::addMessageReceiver):
(WebKit::WebProcessProxy::removeMessageReceiver):
(WebKit::WebProcessProxy::didReceiveMessage):
(WebKit::WebProcessProxy::didReceiveSyncMessage):
* UIProcess/WebProcessProxy.h:
Add a message receiver map to the web process proxy.

* UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
* UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
Add a RemoteLayerTreeHost member variable.

* UIProcess/mac/RemoteLayerTreeHost.h:
Add new class.

* UIProcess/mac/RemoteLayerTreeHost.messages.in:
Add new messages file with a single Commit message.

* UIProcess/mac/RemoteLayerTreeHost.mm:
(WebKit::RemoteLayerTreeHost::RemoteLayerTreeHost):
Add the layer tree host as a message receiver.

(WebKit::RemoteLayerTreeHost::~RemoteLayerTreeHost):
Remote the layer tree host as a message receiver.

(WebKit::RemoteLayerTreeHost::didReceiveMessage):
Call the generated member function.

(WebKit::RemoteLayerTreeHost::commit):
Add an empty stub for now.

* WebKit2.xcodeproj/project.pbxproj:
Add new files.

* WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
(WebKit::RemoteLayerTreeContext::flushLayers):
Send a commit message to the remote layer tree host.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (134323 => 134324)


--- trunk/Source/WebKit2/ChangeLog	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-13 00:21:41 UTC (rev 134324)
@@ -1,3 +1,56 @@
+2012-11-12  Anders Carlsson  <[email protected]>
+
+        Add a RemoteLayerTreeHost object in the UI process
+        https://bugs.webkit.org/show_bug.cgi?id=101999
+
+        Reviewed by Tim Horton.
+
+        Add a (mostly empty) RemoteLayerTreeHost class that will live in the UI process and host the layer tree.
+
+        * DerivedSources.make:
+        Add RemoteLayerTreeHost.messages.in.
+
+        * Platform/CoreIPC/MessageID.h:
+        Add a RemoteLayerTreeHost message class.
+
+        * UIProcess/WebProcessProxy.cpp:
+        (WebKit::WebProcessProxy::addMessageReceiver):
+        (WebKit::WebProcessProxy::removeMessageReceiver):
+        (WebKit::WebProcessProxy::didReceiveMessage):
+        (WebKit::WebProcessProxy::didReceiveSyncMessage):
+        * UIProcess/WebProcessProxy.h:
+        Add a message receiver map to the web process proxy.
+
+        * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
+        * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
+        Add a RemoteLayerTreeHost member variable.
+
+        * UIProcess/mac/RemoteLayerTreeHost.h:
+        Add new class.
+
+        * UIProcess/mac/RemoteLayerTreeHost.messages.in:
+        Add new messages file with a single Commit message.
+        
+        * UIProcess/mac/RemoteLayerTreeHost.mm:
+        (WebKit::RemoteLayerTreeHost::RemoteLayerTreeHost):
+        Add the layer tree host as a message receiver.
+
+        (WebKit::RemoteLayerTreeHost::~RemoteLayerTreeHost):
+        Remote the layer tree host as a message receiver.
+
+        (WebKit::RemoteLayerTreeHost::didReceiveMessage):
+        Call the generated member function.
+
+        (WebKit::RemoteLayerTreeHost::commit):
+        Add an empty stub for now.
+
+        * WebKit2.xcodeproj/project.pbxproj:
+        Add new files.
+
+        * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
+        (WebKit::RemoteLayerTreeContext::flushLayers):
+        Send a commit message to the remote layer tree host.
+
 2012-11-12  Tim Horton  <[email protected]>
 
         PDFPlugin should support non-1 device scale factor

Modified: trunk/Source/WebKit2/DerivedSources.make (134323 => 134324)


--- trunk/Source/WebKit2/DerivedSources.make	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/DerivedSources.make	2012-11-13 00:21:41 UTC (rev 134324)
@@ -49,6 +49,7 @@
     $(WebKit2)/UIProcess/Notifications \
     $(WebKit2)/UIProcess/Plugins \
     $(WebKit2)/UIProcess/SharedWorkers \
+    $(WebKit2)/UIProcess/mac \
 #
 
 MESSAGE_RECEIVERS = \
@@ -74,6 +75,7 @@
     WebCookieManagerProxy \
     WebConnection \
     NetworkConnectionToWebProcess \
+    RemoteLayerTreeHost \
     WebContext \
     WebDatabaseManager \
     WebDatabaseManagerProxy \

Modified: trunk/Source/WebKit2/Platform/CoreIPC/MessageID.h (134323 => 134324)


--- trunk/Source/WebKit2/Platform/CoreIPC/MessageID.h	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/Platform/CoreIPC/MessageID.h	2012-11-13 00:21:41 UTC (rev 134324)
@@ -85,6 +85,7 @@
     MessageClassWebSoupRequestManagerProxy,
 #endif
     MessageClassWebVibrationProxy,
+    MessageClassRemoteLayerTreeHost,
 
     // Messages sent to a WebConnection
     MessageClassWebConnectionLegacy,

Modified: trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp (134323 => 134324)


--- trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp	2012-11-13 00:21:41 UTC (rev 134324)
@@ -182,6 +182,16 @@
         m_processLauncher->terminateProcess();
 }
 
+void WebProcessProxy::addMessageReceiver(CoreIPC::StringReference messageReceiverName, uint64_t destinationID, CoreIPC::MessageReceiver* messageReceiver)
+{
+    m_messageReceiverMap.addMessageReceiver(messageReceiverName, destinationID, messageReceiver);
+}
+
+void WebProcessProxy::removeMessageReceiver(CoreIPC::StringReference messageReceiverName, uint64_t destinationID)
+{
+    m_messageReceiverMap.removeMessageReceiver(messageReceiverName, destinationID);
+}
+
 WebPageProxy* WebProcessProxy::webPage(uint64_t pageID) const
 {
     return m_pageMap.get(pageID);
@@ -415,6 +425,9 @@
 
 void WebProcessProxy::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::MessageDecoder& decoder)
 {
+    if (m_messageReceiverMap.dispatchMessage(connection, messageID, decoder))
+        return;
+
     if (m_context->dispatchMessage(connection, messageID, decoder))
         return;
 
@@ -436,6 +449,9 @@
 
 void WebProcessProxy::didReceiveSyncMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::MessageDecoder& decoder, OwnPtr<CoreIPC::MessageEncoder>& replyEncoder)
 {
+    if (m_messageReceiverMap.dispatchSyncMessage(connection, messageID, decoder, replyEncoder))
+        return;
+
     if (m_context->dispatchSyncMessage(connection, messageID, decoder, replyEncoder))
         return;
 

Modified: trunk/Source/WebKit2/UIProcess/WebProcessProxy.h (134323 => 134324)


--- trunk/Source/WebKit2/UIProcess/WebProcessProxy.h	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/UIProcess/WebProcessProxy.h	2012-11-13 00:21:41 UTC (rev 134324)
@@ -26,6 +26,7 @@
 #ifndef WebProcessProxy_h
 #define WebProcessProxy_h
 
+#include "MessageReceiverMap.h"
 #include "PlatformProcessIdentifier.h"
 #include "PluginInfoStore.h"
 #include "ProcessLauncher.h"
@@ -76,6 +77,10 @@
         
         return m_connection->connection(); 
     }
+
+    void addMessageReceiver(CoreIPC::StringReference messageReceiverName, uint64_t destinationID, CoreIPC::MessageReceiver*);
+    void removeMessageReceiver(CoreIPC::StringReference messageReceiverName, uint64_t destinationID);
+
     WebConnection* webConnection() const { return m_connection.get(); }
 
     WebContext* context() const { return m_context.get(); }
@@ -201,6 +206,7 @@
     // This is not a CoreIPC::Connection so that we can wrap the CoreIPC::Connection in
     // an API object.
     RefPtr<WebConnectionToWebProcess> m_connection;
+    CoreIPC::MessageReceiverMap m_messageReceiverMap;
 
     Vector<std::pair<CoreIPC::Connection::OutgoingMessage, unsigned> > m_pendingMessages;
     RefPtr<ProcessLauncher> m_processLauncher;

Modified: trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h (134323 => 134324)


--- trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h	2012-11-13 00:21:41 UTC (rev 134324)
@@ -27,6 +27,7 @@
 #define RemoteLayerTreeDrawingAreaProxy_h
 
 #include "DrawingAreaProxy.h"
+#include "RemoteLayerTreeHost.h"
 
 namespace WebKit {
 
@@ -40,6 +41,8 @@
 
     virtual void sizeDidChange() OVERRIDE;
     virtual void deviceScaleFactorDidChange() OVERRIDE;
+
+    RemoteLayerTreeHost m_remoteLayerTreeHost;
 };
 
 } // namespace WebKit

Modified: trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm (134323 => 134324)


--- trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm	2012-11-13 00:21:41 UTC (rev 134324)
@@ -35,6 +35,7 @@
 
 RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy(WebPageProxy* webPageProxy)
     : DrawingAreaProxy(DrawingAreaTypeRemoteLayerTree, webPageProxy)
+    , m_remoteLayerTreeHost(webPageProxy)
 {
 }
 

Copied: trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.h (from rev 134323, trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h) (0 => 134324)


--- trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.h	                        (rev 0)
+++ trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.h	2012-11-13 00:21:41 UTC (rev 134324)
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2012 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef RemoteLayerTreeHost_h
+#define RemoteLayerTreeHost_h
+
+#include "MessageReceiver.h"
+
+namespace WebKit {
+
+class WebPageProxy;
+
+class RemoteLayerTreeHost : CoreIPC::MessageReceiver {
+public:
+    explicit RemoteLayerTreeHost(WebPageProxy*);
+    ~RemoteLayerTreeHost();
+
+private:
+    // CoreIPC::MessageReceiver.
+    virtual void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&) OVERRIDE;
+
+    // Implemented in generated RemoteLayerTreeHostMessageReceiver.cpp
+    void didReceiveRemoteLayerTreeHostMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&);
+
+    // Message handlers.
+    void commit();
+
+    WebPageProxy* m_webPageProxy;
+};
+
+} // namespace WebKit
+
+#endif // RemoteLayerTreeHost_h

Added: trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.messages.in (0 => 134324)


--- trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.messages.in	                        (rev 0)
+++ trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.messages.in	2012-11-13 00:21:41 UTC (rev 134324)
@@ -0,0 +1,25 @@
+# Copyright (C) 2012 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1.  Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+# 2.  Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the
+#     documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+messages -> RemoteLayerTreeHost {
+    void Commit()
+}

Copied: trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.mm (from rev 134323, trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm) (0 => 134324)


--- trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.mm	                        (rev 0)
+++ trunk/Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.mm	2012-11-13 00:21:41 UTC (rev 134324)
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2012 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "RemoteLayerTreeHost.h"
+
+#include "RemoteLayerTreeHostMessages.h"
+#include "WebPageProxy.h"
+#include "WebProcessProxy.h"
+
+namespace WebKit {
+
+RemoteLayerTreeHost::RemoteLayerTreeHost(WebPageProxy* webPageProxy)
+    : m_webPageProxy(webPageProxy)
+{
+    m_webPageProxy->process()->addMessageReceiver(Messages::RemoteLayerTreeHost::messageReceiverName(), m_webPageProxy->pageID(), this);
+}
+
+RemoteLayerTreeHost::~RemoteLayerTreeHost()
+{
+    m_webPageProxy->process()->removeMessageReceiver(Messages::RemoteLayerTreeHost::messageReceiverName(), m_webPageProxy->pageID());
+}
+
+void RemoteLayerTreeHost::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::MessageDecoder&decoder)
+{
+    didReceiveRemoteLayerTreeHostMessage(connection, messageID, decoder);
+}
+
+void RemoteLayerTreeHost::commit()
+{
+}
+
+} // namespace WebKit

Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (134323 => 134324)


--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj	2012-11-13 00:21:41 UTC (rev 134324)
@@ -197,6 +197,10 @@
 		1A9FBA8D13FF04E600DEED67 /* PluginComplexTextInputState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9FBA8C13FF04E600DEED67 /* PluginComplexTextInputState.h */; };
 		1AA2E51D12E4C05E00BC4966 /* CGUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AA2E51B12E4C05E00BC4966 /* CGUtilities.h */; };
 		1AA2E51E12E4C05E00BC4966 /* CGUtilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AA2E51C12E4C05E00BC4966 /* CGUtilities.cpp */; };
+		1AA3D75B1651B44F008713D0 /* RemoteLayerTreeHost.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AA3D7591651B44F008713D0 /* RemoteLayerTreeHost.mm */; };
+		1AA3D75C1651B44F008713D0 /* RemoteLayerTreeHost.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AA3D75A1651B44F008713D0 /* RemoteLayerTreeHost.h */; };
+		1AA3D7611651B7D3008713D0 /* RemoteLayerTreeHostMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AA3D75F1651B7D3008713D0 /* RemoteLayerTreeHostMessageReceiver.cpp */; };
+		1AA3D7621651B7D3008713D0 /* RemoteLayerTreeHostMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AA3D7601651B7D3008713D0 /* RemoteLayerTreeHostMessages.h */; };
 		1AA417CB12C00CCA002BE67B /* TextChecker.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AA417C912C00CCA002BE67B /* TextChecker.h */; };
 		1AA417EF12C00D87002BE67B /* TextCheckerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AA417ED12C00D87002BE67B /* TextCheckerMac.mm */; };
 		1AA41AB512C02EC4002BE67B /* EditorState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AA41AB412C02EC4002BE67B /* EditorState.h */; };
@@ -1381,6 +1385,11 @@
 		1AA1CD06100FA1BA0078DEBC /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
 		1AA2E51B12E4C05E00BC4966 /* CGUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CGUtilities.h; sourceTree = "<group>"; };
 		1AA2E51C12E4C05E00BC4966 /* CGUtilities.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CGUtilities.cpp; sourceTree = "<group>"; };
+		1AA3D7591651B44F008713D0 /* RemoteLayerTreeHost.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RemoteLayerTreeHost.mm; sourceTree = "<group>"; };
+		1AA3D75A1651B44F008713D0 /* RemoteLayerTreeHost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteLayerTreeHost.h; sourceTree = "<group>"; };
+		1AA3D75D1651B5C5008713D0 /* RemoteLayerTreeHost.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RemoteLayerTreeHost.messages.in; sourceTree = "<group>"; };
+		1AA3D75F1651B7D3008713D0 /* RemoteLayerTreeHostMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RemoteLayerTreeHostMessageReceiver.cpp; path = RemoteLayerTreeHostMessageReceiver.cpp; sourceTree = "<group>"; };
+		1AA3D7601651B7D3008713D0 /* RemoteLayerTreeHostMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RemoteLayerTreeHostMessages.h; path = RemoteLayerTreeHostMessages.h; sourceTree = "<group>"; };
 		1AA417C912C00CCA002BE67B /* TextChecker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextChecker.h; sourceTree = "<group>"; };
 		1AA417ED12C00D87002BE67B /* TextCheckerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextCheckerMac.mm; sourceTree = "<group>"; };
 		1AA41AB412C02EC4002BE67B /* EditorState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditorState.h; sourceTree = "<group>"; };
@@ -4010,6 +4019,9 @@
 				B878B614133428DC006888E9 /* CorrectionPanel.mm */,
 				1AB16AE01648656D00290D62 /* RemoteLayerTreeDrawingAreaProxy.h */,
 				1AB16ADF1648656D00290D62 /* RemoteLayerTreeDrawingAreaProxy.mm */,
+				1AA3D75A1651B44F008713D0 /* RemoteLayerTreeHost.h */,
+				1AA3D75D1651B5C5008713D0 /* RemoteLayerTreeHost.messages.in */,
+				1AA3D7591651B44F008713D0 /* RemoteLayerTreeHost.mm */,
 				1AA417ED12C00D87002BE67B /* TextCheckerMac.mm */,
 				1AF05D8514688348008B1E81 /* TiledCoreAnimationDrawingAreaProxy.h */,
 				1AF05D8414688348008B1E81 /* TiledCoreAnimationDrawingAreaProxy.mm */,
@@ -4178,6 +4190,8 @@
 				1A043B5C124D5E9D00FFBFB5 /* PluginProcessProxyMessages.h */,
 				1A8EFA6E1252B84100F7067F /* PluginProxyMessageReceiver.cpp */,
 				1A8EFA6F1252B84100F7067F /* PluginProxyMessages.h */,
+				1AA3D75F1651B7D3008713D0 /* RemoteLayerTreeHostMessageReceiver.cpp */,
+				1AA3D7601651B7D3008713D0 /* RemoteLayerTreeHostMessages.h */,
 				E1EDFDB11628AD730039ECDA /* SharedWorkerProcessMessageReceiver.cpp */,
 				E1EDFDB21628AD730039ECDA /* SharedWorkerProcessMessages.h */,
 				E1EDFDB31628AD730039ECDA /* SharedWorkerProcessProxyMessageReceiver.cpp */,
@@ -4882,6 +4896,8 @@
 				51217461164C20E30037A5C1 /* ShareableResource.h in Headers */,
 				51217465164C21370037A5C1 /* WebResourceBuffer.h in Headers */,
 				1AF1AC6C1651759E00C17D7F /* RemoteLayerTreeTransaction.h in Headers */,
+				1AA3D75C1651B44F008713D0 /* RemoteLayerTreeHost.h in Headers */,
+				1AA3D7621651B7D3008713D0 /* RemoteLayerTreeHostMessages.h in Headers */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -5824,6 +5840,8 @@
 				51217460164C20E30037A5C1 /* ShareableResource.cpp in Sources */,
 				51217464164C21370037A5C1 /* WebResourceBuffer.cpp in Sources */,
 				1AF1AC6B1651759E00C17D7F /* RemoteLayerTreeTransaction.mm in Sources */,
+				1AA3D75B1651B44F008713D0 /* RemoteLayerTreeHost.mm in Sources */,
+				1AA3D7611651B7D3008713D0 /* RemoteLayerTreeHostMessageReceiver.cpp in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};

Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeContext.mm (134323 => 134324)


--- trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeContext.mm	2012-11-12 23:55:00 UTC (rev 134323)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeContext.mm	2012-11-13 00:21:41 UTC (rev 134324)
@@ -28,6 +28,7 @@
 
 #import "RemoteGraphicsLayer.h"
 #import "RemoteLayerTreeTransaction.h"
+#import "RemoteLayerTreeHostMessages.h"
 #import "WebPage.h"
 #import <WebCore/Frame.h>
 #import <WebCore/FrameView.h>
@@ -95,6 +96,7 @@
     m_webPage->corePage()->mainFrame()->view()->flushCompositingStateIncludingSubframes();
 
     // FIXME: Package up the transaction and send it to the UI process.
+    m_webPage->send(Messages::RemoteLayerTreeHost::Commit());
 }
 
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to