Title: [216182] trunk/Source/WebKit2
- Revision
- 216182
- Author
- [email protected]
- Date
- 2017-05-04 05:42:13 -0700 (Thu, 04 May 2017)
Log Message
[Threaded Compositor] SHOULD NEVER BE REACHED in WebKit::CompositingRunLoop::updateCompleted
https://bugs.webkit.org/show_bug.cgi?id=171336
Reviewed by Michael Catanzaro.
We are assuming that all calls to ThreadedCompositor::renderLayerTree() happen because of an scheduled update,
but that's not true in the case of ThreadedCompositor::forceRepaint(). In that case we never want to call
CompositingRunLoop::updateCompleted().
* Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
(WebKit::ThreadedCompositor::forceRepaint):
(WebKit::ThreadedCompositor::sceneUpdateFinished):
* Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (216181 => 216182)
--- trunk/Source/WebKit2/ChangeLog 2017-05-04 12:30:13 UTC (rev 216181)
+++ trunk/Source/WebKit2/ChangeLog 2017-05-04 12:42:13 UTC (rev 216182)
@@ -1,3 +1,19 @@
+2017-05-04 Carlos Garcia Campos <[email protected]>
+
+ [Threaded Compositor] SHOULD NEVER BE REACHED in WebKit::CompositingRunLoop::updateCompleted
+ https://bugs.webkit.org/show_bug.cgi?id=171336
+
+ Reviewed by Michael Catanzaro.
+
+ We are assuming that all calls to ThreadedCompositor::renderLayerTree() happen because of an scheduled update,
+ but that's not true in the case of ThreadedCompositor::forceRepaint(). In that case we never want to call
+ CompositingRunLoop::updateCompleted().
+
+ * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
+ (WebKit::ThreadedCompositor::forceRepaint):
+ (WebKit::ThreadedCompositor::sceneUpdateFinished):
+ * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
+
2017-05-04 David Kilzer <[email protected]>
check-webkit-style exits with an error while parsing Source/WebKit2/Scripts/webkit/ directory: KeyError: 'st'
Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp (216181 => 216182)
--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp 2017-05-04 12:30:13 UTC (rev 216181)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp 2017-05-04 12:42:13 UTC (rev 216182)
@@ -32,6 +32,7 @@
#include "ThreadedDisplayRefreshMonitor.h"
#include <WebCore/PlatformDisplay.h>
#include <WebCore/TransformationMatrix.h>
+#include <wtf/SetForScope.h>
#if USE(OPENGL_ES_2)
#include <GLES2/gl2.h>
@@ -180,6 +181,7 @@
void ThreadedCompositor::forceRepaint()
{
m_compositingRunLoop->performTaskSync([this, protectedThis = makeRef(*this)] {
+ SetForScope<bool> change(m_inForceRepaint, true);
renderLayerTree();
});
}
@@ -222,7 +224,7 @@
if (shouldDispatchDisplayRefreshCallback)
m_displayRefreshMonitor->dispatchDisplayRefreshCallback();
- if (!shouldCoordinateUpdateCompletionWithClient)
+ if (!shouldCoordinateUpdateCompletionWithClient && !m_inForceRepaint)
m_compositingRunLoop->updateCompleted();
}
Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h (216181 => 216182)
--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h 2017-05-04 12:30:13 UTC (rev 216181)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h 2017-05-04 12:42:13 UTC (rev 216182)
@@ -112,6 +112,7 @@
ShouldDoFrameSync m_doFrameSync;
WebCore::TextureMapper::PaintFlags m_paintFlags { 0 };
bool m_needsResize { false };
+ bool m_inForceRepaint { false };
std::unique_ptr<CompositingRunLoop> m_compositingRunLoop;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes