git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[CoordinatedGraphics] The compositing loop is still running even after exiting AC...
[WebKit-https.git]
/
Source
/
WebKit
/
WebProcess
/
WebPage
/
CoordinatedGraphics
/
LayerTreeHost.cpp
diff --git
a/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
b/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
index
aa2a033
..
ad16b6c
100644
(file)
--- a/
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
+++ b/
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
@@
-106,11
+106,13
@@
void LayerTreeHost::setLayerFlushSchedulingEnabled(bool layerFlushingEnabled)
m_layerFlushSchedulingEnabled = layerFlushingEnabled;
if (m_layerFlushSchedulingEnabled) {
m_layerFlushSchedulingEnabled = layerFlushingEnabled;
if (m_layerFlushSchedulingEnabled) {
+ m_compositor->resume();
scheduleLayerFlush();
return;
}
cancelPendingLayerFlush();
scheduleLayerFlush();
return;
}
cancelPendingLayerFlush();
+ m_compositor->suspend();
}
void LayerTreeHost::setShouldNotifyAfterNextScheduledLayerFlush(bool notifyAfterScheduledLayerFlush)
}
void LayerTreeHost::setShouldNotifyAfterNextScheduledLayerFlush(bool notifyAfterScheduledLayerFlush)
@@
-248,11
+250,13
@@
void LayerTreeHost::sizeDidChange(const IntSize& size)
void LayerTreeHost::pauseRendering()
{
m_isSuspended = true;
void LayerTreeHost::pauseRendering()
{
m_isSuspended = true;
+ m_compositor->suspend();
}
void LayerTreeHost::resumeRendering()
{
m_isSuspended = false;
}
void LayerTreeHost::resumeRendering()
{
m_isSuspended = false;
+ m_compositor->resume();
scheduleLayerFlush();
}
scheduleLayerFlush();
}