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

Unified Diff: cc/layers/render_surface_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/render_surface_impl.h
diff --git a/cc/layers/render_surface_impl.h b/cc/layers/render_surface_impl.h
index de7a984da93d975445c8e53671cd2fd84af5bcfc..8a4d7fb79d2c1a776c9ac647846c0be760e5786b 100644
--- a/cc/layers/render_surface_impl.h
+++ b/cc/layers/render_surface_impl.h
@@ -37,6 +37,11 @@ class CC_EXPORT RenderSurfaceImpl {
explicit RenderSurfaceImpl(LayerImpl* owning_layer);
virtual ~RenderSurfaceImpl();
+ // Returns the RenderSurfaceImpl that this render surface contributes to. Root
+ // render surface's render_target is itself.
+ RenderSurfaceImpl* render_target();
+ const RenderSurfaceImpl* render_target() const;
+
gfx::PointF ContentRectCenter() const {
return gfx::RectF(content_rect()).CenterPoint();
}
@@ -115,7 +120,12 @@ class CC_EXPORT RenderSurfaceImpl {
void SetContentRect(const gfx::Rect& content_rect);
gfx::Rect content_rect() const { return draw_properties_.content_rect; }
- void SetAccumulatedContentRect(const gfx::Rect& content_rect);
+ void ClearAccumulatedContentRect();
+ void AccumulateContentRectFromContributingLayer(
+ LayerImpl* contributing_layer);
+ void AccumulateContentRectFromContributingRenderSurface(
+ RenderSurfaceImpl* contributing_surface);
+
gfx::Rect accumulated_content_rect() const {
return accumulated_content_rect_;
}

Powered by Google App Engine
This is Rietveld 408576698