Index: cc/output/overlay_processor.h |
diff --git a/cc/output/overlay_processor.h b/cc/output/overlay_processor.h |
index b8957052967e07a1d41363ff4fa1e9b07789e7d7..e412f4bc6c70e16c26076a0b3eb7250c239a7be6 100644 |
--- a/cc/output/overlay_processor.h |
+++ b/cc/output/overlay_processor.h |
@@ -29,6 +29,8 @@ class CC_EXPORT OverlayProcessor { |
virtual bool Attempt(ResourceProvider* resource_provider, |
RenderPass* render_pass, |
OverlayCandidateList* candidates) = 0; |
+ |
+ virtual void GetContentBounds(std::vector<gfx::Rect>* bounds); |
}; |
using StrategyList = std::vector<std::unique_ptr<Strategy>>; |
@@ -38,6 +40,7 @@ class CC_EXPORT OverlayProcessor { |
virtual void Initialize(); |
gfx::Rect GetAndResetOverlayDamage(); |
+ void GetContentBounds(std::vector<gfx::Rect>* content_bounds); |
// Attempt to replace quads from the specified root render pass with overlays |
// or CALayers. This must be called every frame. |
@@ -55,6 +58,7 @@ class CC_EXPORT OverlayProcessor { |
OutputSurface* surface_; |
gfx::Rect overlay_damage_rect_; |
gfx::Rect previous_frame_underlay_rect_; |
+ std::vector<gfx::Rect> content_bounds_; |
private: |
bool ProcessForCALayers( |