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

Unified Diff: cc/layer_tree_host_impl.h

Issue 11447028: cc: Split out calcDrawEtc from drawLayers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Testing Created 8 years 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: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index 07afc90ed57788a863e3517c51c4e9897f38273f..74bdf725751a30e93d6448aea40b30efe265c763 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -248,6 +248,9 @@ public:
void setHasTransparentBackground(bool transparent) { m_hasTransparentBackground = transparent; }
bool needsAnimateLayers() const { return !m_activeAnimationControllers.empty(); }
+ bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties; }
+ void setNeedsUpdateDrawProperties() { m_needsUpdateDrawProperties = true; }
+
void setNeedsRedraw();
void renderingStats(RenderingStats*) const;
@@ -298,8 +301,11 @@ protected:
void animatePageScale(base::TimeTicks monotonicTime);
void animateScrollbars(base::TimeTicks monotonicTime);
+ void updateDrawProperties();
+
// Exposed for testing.
void calculateRenderSurfaceLayerList(LayerList&);
+ void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawProperties = false; }
// Virtual for testing.
virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClockTime);
@@ -364,6 +370,7 @@ private:
bool m_hasTransparentBackground;
// If this is true, it is necessary to traverse the layer tree ticking the animators.
+ bool m_needsUpdateDrawProperties;
bool m_pinchGestureActive;
gfx::Point m_previousPinchAnchor;

Powered by Google App Engine
This is Rietveld 408576698