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

Unified Diff: cc/layers/layer_impl.h

Issue 1868003002: cc: Move RenderTarget Information to Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 37055539d0a93744d8aaceef1416db37ad054ea4..262a6e12a6640814c80fc031e9c9c7af047cd123 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -358,6 +358,11 @@ class CC_EXPORT LayerImpl {
RenderSurfaceImpl* render_surface() const { return render_surface_.get(); }
+ // The render surface which this layer draws into. This can be either owned by
+ // the same layer or an ancestor of this layer.
+ RenderSurfaceImpl* render_target();
+ const RenderSurfaceImpl* render_target() const;
+
DrawProperties& draw_properties() { return draw_properties_; }
const DrawProperties& draw_properties() const { return draw_properties_; }
@@ -389,17 +394,6 @@ class CC_EXPORT LayerImpl {
gfx::Rect visible_layer_rect() const {
return draw_properties_.visible_layer_rect;
}
- LayerImpl* render_target() {
- DCHECK(!draw_properties_.render_target ||
- draw_properties_.render_target->render_surface());
- return draw_properties_.render_target;
- }
- const LayerImpl* render_target() const {
- DCHECK(!draw_properties_.render_target ||
- draw_properties_.render_target->render_surface());
- return draw_properties_.render_target;
- }
-
size_t num_unclipped_descendants() const {
return draw_properties_.num_unclipped_descendants;
}

Powered by Google App Engine
This is Rietveld 408576698