| Index: cc/layers/render_surface_impl.h
|
| diff --git a/cc/layers/render_surface_impl.h b/cc/layers/render_surface_impl.h
|
| index 1cc2de85cd4130c6239cbc1b7d4dd349dd1ad261..b678b2fb6fc968667cfe0301255a3eedc781bad5 100644
|
| --- a/cc/layers/render_surface_impl.h
|
| +++ b/cc/layers/render_surface_impl.h
|
| @@ -14,6 +14,7 @@
|
| #include "cc/layers/layer_lists.h"
|
| #include "cc/quads/render_pass.h"
|
| #include "cc/quads/shared_quad_state.h"
|
| +#include "cc/trees/occlusion.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| #include "ui/gfx/geometry/rect_f.h"
|
| #include "ui/gfx/transform.h"
|
| @@ -125,6 +126,20 @@ class CC_EXPORT RenderSurfaceImpl {
|
| void SetContentRect(const gfx::Rect& content_rect);
|
| gfx::Rect content_rect() const { return content_rect_; }
|
|
|
| + const Occlusion& occlusion_in_content_space() const {
|
| + return occlusion_in_content_space_;
|
| + }
|
| + void set_occlusion_in_content_space(const Occlusion& occlusion) {
|
| + occlusion_in_content_space_ = occlusion;
|
| + }
|
| +
|
| + const Occlusion& replica_occlusion_in_content_space() const {
|
| + return replica_occlusion_in_content_space_;
|
| + }
|
| + void set_replica_occlusion_in_content_space(const Occlusion& occlusion) {
|
| + replica_occlusion_in_content_space_ = occlusion;
|
| + }
|
| +
|
| LayerImplList& layer_list() { return layer_list_; }
|
| void AddContributingDelegatedRenderPassLayer(LayerImpl* layer);
|
| void ClearLayerLists();
|
| @@ -174,6 +189,8 @@ class CC_EXPORT RenderSurfaceImpl {
|
| LayerImplList layer_list_;
|
| std::vector<DelegatedRendererLayerImpl*>
|
| contributing_delegated_render_pass_layer_list_;
|
| + Occlusion occlusion_in_content_space_;
|
| + Occlusion replica_occlusion_in_content_space_;
|
|
|
| // The nearest ancestor target surface that will contain the contents of this
|
| // surface, and that ignores outside occlusion. This can point to itself.
|
|
|