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

Unified Diff: Source/web/PageWidgetDelegate.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: 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/web/PageWidgetDelegate.cpp
diff --git a/Source/web/PageWidgetDelegate.cpp b/Source/web/PageWidgetDelegate.cpp
index 7d5730be9860fa072df0efedae6b4437e2f4fdfa..9835cee6474bd60253592735816cfb43d7f1a3e5 100644
--- a/Source/web/PageWidgetDelegate.cpp
+++ b/Source/web/PageWidgetDelegate.cpp
@@ -38,6 +38,8 @@
#include "core/page/Frame.h"
#include "core/page/FrameView.h"
#include "core/platform/graphics/GraphicsContext.h"
+#include "core/rendering/RenderLayerCompositor.h"
+#include "core/rendering/RenderView.h"
#include "wtf/CurrentTime.h"
using namespace WebCore;
@@ -78,6 +80,10 @@ void PageWidgetDelegate::layout(Page* page)
// setFrameRect may have the side-effect of causing existing page layout to
// be invalidated, so layout needs to be called last.
view->updateLayoutAndStyleIfNeededRecursive();
+
+ // FIXME: is this a reasonable place for this?
jamesr 2013/10/08 17:51:16 this is reasonable since we don't have a better en
+ // Finally do all the deferred work for updateCompositingLayers() here.
+ view->renderView()->compositor()->updateCompositingLayers(CompositingUpdateOnBeginDrawingFrame);
}
void PageWidgetDelegate::paint(Page* page, PageOverlayList* overlays, WebCanvas* canvas, const WebRect& rect, CanvasBackground background)

Powered by Google App Engine
This is Rietveld 408576698