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

Unified Diff: cc/output/overlay_strategy_common.cc

Issue 1304303002: Mac Overlays: Add sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overlay_debug
Patch Set: Ready for pre-review Created 5 years, 4 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_strategy_common.cc
diff --git a/cc/output/overlay_strategy_common.cc b/cc/output/overlay_strategy_common.cc
index 7da74caacaeb36214234c55c3febad11132f29e5..6b00f5a2a72cc418d0b16614ceec89f942f5de62 100644
--- a/cc/output/overlay_strategy_common.cc
+++ b/cc/output/overlay_strategy_common.cc
@@ -25,8 +25,10 @@ OverlayStrategyCommon::OverlayStrategyCommon(
OverlayStrategyCommon::~OverlayStrategyCommon() {
}
-bool OverlayStrategyCommon::Attempt(RenderPassList* render_passes_in_draw_order,
- OverlayCandidateList* candidate_list) {
+bool OverlayStrategyCommon::Attempt(
+ const OverlayProcessor::RendererState& renderer_state,
+ RenderPassList* render_passes_in_draw_order,
+ OverlayCandidateList* candidate_list) {
if (!capability_checker_)
return false;
RenderPass* root_render_pass = render_passes_in_draw_order->back();
@@ -38,8 +40,8 @@ bool OverlayStrategyCommon::Attempt(RenderPassList* render_passes_in_draw_order,
const DrawQuad* draw_quad = *it;
if (IsOverlayQuad(draw_quad) &&
GetCandidateQuadInfo(*draw_quad, &candidate) &&
- TryOverlay(capability_checker_, render_passes_in_draw_order,
- candidate_list, candidate, it))
+ TryOverlay(renderer_state, capability_checker_,
+ render_passes_in_draw_order, candidate_list, candidate, it))
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698