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

Unified Diff: Source/core/rendering/compositing/GraphicsLayerUpdater.h

Issue 183763016: Reduce compositing update in Silk's toggle_drawer by 20% (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix win build Created 6 years, 9 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/rendering/compositing/GraphicsLayerUpdater.h
diff --git a/Source/core/rendering/compositing/GraphicsLayerUpdater.h b/Source/core/rendering/compositing/GraphicsLayerUpdater.h
index 9b9658a2762919cade645aef2298c6e18d87f639..745294acdc43931deffe1d605f188257ad9401d8 100644
--- a/Source/core/rendering/compositing/GraphicsLayerUpdater.h
+++ b/Source/core/rendering/compositing/GraphicsLayerUpdater.h
@@ -41,11 +41,16 @@ public:
explicit GraphicsLayerUpdater(RenderView&);
~GraphicsLayerUpdater();
- void updateRecursive(RenderLayer&);
- void rebuildTree(RenderLayer&, Vector<GraphicsLayer*>& childLayersOfEnclosingLayer, int depth);
+ enum UpdateType {
+ DoNotForceUpdate,
+ ForceUpdate,
+ };
+
+ void updateRecursive(RenderLayer&, UpdateType);
+ void rebuildTree(RenderLayer&, UpdateType, Vector<GraphicsLayer*>& childLayersOfEnclosingLayer, int depth);
private:
- void update(RenderLayer&);
+ UpdateType update(RenderLayer&, UpdateType);
RenderView& m_renderView;

Powered by Google App Engine
This is Rietveld 408576698