Index: cc/layers/layer.h |
diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
index 2a5e52743a9d7a1eb505fdbf48d49697c0207e5d..c4c490c582270c5efcbced254b5caf5f79cd1fd7 100644 |
--- a/cc/layers/layer.h |
+++ b/cc/layers/layer.h |
@@ -519,6 +519,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
const gfx::Rect& clip_rect() const { return clip_rect_; } |
void set_clip_rect(const gfx::Rect& rect) { clip_rect_ = rect; } |
+ // This should only be called during BeginMainFrame since it does not trigger |
+ // a Commit. This is called right after property tree being built and should |
+ // not trigger property tree rebuild. |
+ void SetHasRenderSurface(bool has_render_surface); |
bool has_render_surface() const { |
return has_render_surface_; |
} |
@@ -661,10 +665,6 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
void SetParent(Layer* layer); |
bool DescendantIsFixedToContainerLayer() const; |
- // This should only be called during BeginMainFrame since it does not |
- // trigger a Commit. |
- void SetHasRenderSurface(bool has_render_surface); |
- |
// This should only be called from RemoveFromParent(). |
void RemoveChildOrDependent(Layer* child); |