| Index: cc/layers/layer_impl.h
|
| diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
|
| index 40d7336c64b4346a611452ab79f589b082ffe1d0..a27d8843db61b1c00fe0a54ee501bc9537e8feab 100644
|
| --- a/cc/layers/layer_impl.h
|
| +++ b/cc/layers/layer_impl.h
|
| @@ -359,6 +359,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_; }
|
|
|
| @@ -390,17 +395,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;
|
| }
|
|
|