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

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: fix for crash 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
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 760fcbd4468fe6f8eb5a910cfeaae57f10f26908..a64e04e16a81bdece430b2d816b52e0029319db0 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_;
}
@@ -667,10 +671,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);
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698