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

Unified Diff: cc/output/overlay_processor.h

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: Created 3 years, 10 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/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(

Powered by Google App Engine
This is Rietveld 408576698