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

Unified Diff: cc/layers/layer.h

Issue 1491033002: Create RenderSurface on Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alwayspt
Patch Set: address review comments Created 5 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/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);

Powered by Google App Engine
This is Rietveld 408576698