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

Unified Diff: cc/output/overlay_processor.cc

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: danakj nits 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
« no previous file with comments | « cc/output/overlay_processor.h ('k') | cc/output/overlay_strategy_fullscreen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_processor.cc
diff --git a/cc/output/overlay_processor.cc b/cc/output/overlay_processor.cc
index 8a1a9e7fd73cd727fc971973b8612d64c85c77b3..47358e3b81ef76640e3dbcfec0b1af2bcbc059d6 100644
--- a/cc/output/overlay_processor.cc
+++ b/cc/output/overlay_processor.cc
@@ -93,7 +93,8 @@ void OverlayProcessor::ProcessForOverlays(
const RenderPassFilterList& render_pass_background_filters,
OverlayCandidateList* candidates,
CALayerOverlayList* ca_layer_overlays,
- gfx::Rect* damage_rect) {
+ gfx::Rect* damage_rect,
+ std::vector<gfx::Rect>* content_bounds) {
#if defined(OS_ANDROID)
// Be sure to send out notifications, regardless of whether we get to
// processing for overlays or not. If we don't, then we should notify that
@@ -120,7 +121,8 @@ void OverlayProcessor::ProcessForOverlays(
// Only if that fails, attempt hardware overlay strategies.
for (const auto& strategy : strategies_) {
- if (!strategy->Attempt(resource_provider, render_pass, candidates))
+ if (!strategy->Attempt(resource_provider, render_pass, candidates,
+ content_bounds))
continue;
UpdateDamageRect(candidates, damage_rect);
« no previous file with comments | « cc/output/overlay_processor.h ('k') | cc/output/overlay_strategy_fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698