Title: [178665] trunk/Source/WebKit2
Revision
178665
Author
zandober...@gmail.com
Date
2015-01-19 12:31:44 -0800 (Mon, 19 Jan 2015)

Log Message

[CoordinatedGraphics] Use C++ lambda instead of WTF::bind() in ThreadedCompositor::updateSceneState()
https://bugs.webkit.org/show_bug.cgi?id=140613

Reviewed by Carlos Garcia Campos.

* Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
(WebKit::ThreadedCompositor::updateSceneState): Replace the use of WTF::bind() with a C++ lambda.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (178664 => 178665)


--- trunk/Source/WebKit2/ChangeLog	2015-01-19 20:30:03 UTC (rev 178664)
+++ trunk/Source/WebKit2/ChangeLog	2015-01-19 20:31:44 UTC (rev 178665)
@@ -1,3 +1,13 @@
+2015-01-19  Zan Dobersek  <zdober...@igalia.com>
+
+        [CoordinatedGraphics] Use C++ lambda instead of WTF::bind() in ThreadedCompositor::updateSceneState()
+        https://bugs.webkit.org/show_bug.cgi?id=140613
+
+        Reviewed by Carlos Garcia Campos.
+
+        * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
+        (WebKit::ThreadedCompositor::updateSceneState): Replace the use of WTF::bind() with a C++ lambda.
+
 2015-01-19  Commit Queue  <commit-qu...@webkit.org>
 
         Unreviewed, rolling out r178653.

Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp (178664 => 178665)


--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp	2015-01-19 20:30:03 UTC (rev 178664)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp	2015-01-19 20:31:44 UTC (rev 178665)
@@ -272,7 +272,11 @@
 
 void ThreadedCompositor::updateSceneState(const CoordinatedGraphicsState& state)
 {
-    m_scene->appendUpdate(bind(&CoordinatedGraphicsScene::commitSceneState, m_scene.get(), state));
+    RefPtr<CoordinatedGraphicsScene> scene = m_scene;
+    m_scene->appendUpdate([scene, state] {
+        scene->commitSceneState(state);
+    });
+
     setNeedsDisplay();
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to