Index: cc/layer_tree_host_impl.h |
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h |
index 71049a8f9ea599b5f7e72b9ac09db3685c9bf728..efd368ba987bd0829c536485595b45bfd8bb2f15 100644 |
--- a/cc/layer_tree_host_impl.h |
+++ b/cc/layer_tree_host_impl.h |
@@ -249,6 +249,9 @@ public: |
bool needsAnimateLayers() const { return m_needsAnimateLayers; } |
void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } |
+ bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties; } |
+ void setNeedsUpdateDrawProperties() { m_needsUpdateDrawProperties = true; } |
+ |
void setNeedsRedraw(); |
void renderingStats(RenderingStats*) const; |
@@ -304,8 +307,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: |
// If this is true, it is necessary to traverse the layer tree ticking the animators. |
bool m_needsAnimateLayers; |
+ bool m_needsUpdateDrawProperties; |
bool m_pinchGestureActive; |
gfx::Point m_previousPinchAnchor; |