Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: Source/core/page/Page.cpp

Issue 26110004: Defer the real work in updateCompositingLayers until it's really needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: few more fixes Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 3f1af06fe405ef39f1203de46ff66e59eca3d7c5..327d89518dcd8a3beca926b0cc8872450ab64141 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -51,6 +51,7 @@
#include "core/page/ValidationMessageClient.h"
#include "core/page/scrolling/ScrollingCoordinator.h"
#include "core/plugins/PluginData.h"
+#include "core/rendering/RenderLayerCompositor.h"
#include "core/rendering/RenderView.h"
#include "core/storage/StorageNamespace.h"
#include "wtf/HashMap.h"
@@ -227,6 +228,9 @@ String Page::mainThreadScrollingReasonsAsText()
if (Document* document = m_mainFrame->document())
document->updateLayout();
+ if (m_mainFrame->contentRenderer() && m_mainFrame->contentRenderer()->compositor())
+ m_mainFrame->contentRenderer()->compositor()->updateCompositingLayers(CompositingUpdateFinishAllDeferredWork);
+
if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
return scrollingCoordinator->mainThreadScrollingReasonsAsText();
Ian Vollick 2013/10/17 01:30:25 Perhaps this could be passed m_mainFrame->view().
shawnsingh 2013/10/17 01:44:04 Can you please clarify - are you suggesting that I
Ian Vollick 2013/10/17 15:24:24 Yeah. It's a minor point, but I thought it would b

Powered by Google App Engine
This is Rietveld 408576698