Title: [140495] trunk/Source/WebKit/chromium
Revision
140495
Author
leandrogra...@chromium.org
Date
2013-01-22 18:25:05 -0800 (Tue, 22 Jan 2013)

Log Message

[Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
https://bugs.webkit.org/show_bug.cgi?id=107325

Reviewed by James Robinson.

Add a notification on WebWidgetClient called when the compositor commits a frame.

* public/WebWidgetClient.h:
(WebWidgetClient):
(WebKit::WebWidgetClient::didCommitCompositorFrame):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::didCommit):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (140494 => 140495)


--- trunk/Source/WebKit/chromium/ChangeLog	2013-01-23 02:02:27 UTC (rev 140494)
+++ trunk/Source/WebKit/chromium/ChangeLog	2013-01-23 02:25:05 UTC (rev 140495)
@@ -1,3 +1,18 @@
+2013-01-22  Leandro Gracia Gil  <leandrogra...@chromium.org>
+
+        [Chromium] Expose didCommitCompositorFrame in WebWidgetClient.
+        https://bugs.webkit.org/show_bug.cgi?id=107325
+
+        Reviewed by James Robinson.
+
+        Add a notification on WebWidgetClient called when the compositor commits a frame.
+
+        * public/WebWidgetClient.h:
+        (WebWidgetClient):
+        (WebKit::WebWidgetClient::didCommitCompositorFrame):
+        * src/WebViewImpl.cpp:
+        (WebKit::WebViewImpl::didCommit):
+
 2013-01-21  Kentaro Hara  <hara...@chromium.org>
 
         Implement UIEvent constructor

Modified: trunk/Source/WebKit/chromium/public/WebWidgetClient.h (140494 => 140495)


--- trunk/Source/WebKit/chromium/public/WebWidgetClient.h	2013-01-23 02:02:27 UTC (rev 140494)
+++ trunk/Source/WebKit/chromium/public/WebWidgetClient.h	2013-01-23 02:25:05 UTC (rev 140495)
@@ -84,6 +84,9 @@
     // input.
     virtual void didBecomeReadyForAdditionalInput() { }
 
+    // Called for compositing mode when a frame commit operation has finished.
+    virtual void didCommitCompositorFrame() { }
+
     // Called for compositing mode when the draw commands for a WebKit-side
     // frame have been issued.
     virtual void didCommitAndDrawCompositorFrame() { }

Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (140494 => 140495)


--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2013-01-23 02:02:27 UTC (rev 140494)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2013-01-23 02:25:05 UTC (rev 140495)
@@ -4162,8 +4162,10 @@
 
 void WebViewImpl::didCommit()
 {
-    if (m_client)
+    if (m_client) {
+        m_client->didCommitCompositorFrame();
         m_client->didBecomeReadyForAdditionalInput();
+    }
 }
 
 void WebViewImpl::didCommitAndDrawFrame()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to