| 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_;
|
| }
|
|
|