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

Unified Diff: cc/output/overlay_strategy_all_or_nothing.cc

Issue 1387283002: cc: Remove redundant is_overlay arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo changes on overlay_strategy_single_on_top.cc Created 5 years, 2 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_strategy_all_or_nothing.h ('k') | cc/output/overlay_strategy_sandwich.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_all_or_nothing.cc
diff --git a/cc/output/overlay_strategy_all_or_nothing.cc b/cc/output/overlay_strategy_all_or_nothing.cc
index 3550d4f508be4ff3eac46caac0eb28c419892d66..40c58cd0a4e26816f661aa6cc9e97720c31cf8df 100644
--- a/cc/output/overlay_strategy_all_or_nothing.cc
+++ b/cc/output/overlay_strategy_all_or_nothing.cc
@@ -17,7 +17,8 @@ OverlayStrategyAllOrNothing::OverlayStrategyAllOrNothing(
OverlayStrategyAllOrNothing::~OverlayStrategyAllOrNothing() {}
-bool OverlayStrategyAllOrNothing::Attempt(RenderPassList* render_passes,
+bool OverlayStrategyAllOrNothing::Attempt(ResourceProvider* resource_provider,
+ RenderPassList* render_passes,
OverlayCandidateList* candidates) {
QuadList& quad_list = render_passes->back()->quad_list;
OverlayCandidateList new_candidates;
@@ -25,7 +26,7 @@ bool OverlayStrategyAllOrNothing::Attempt(RenderPassList* render_passes,
for (const DrawQuad* quad : quad_list) {
OverlayCandidate candidate;
- if (!OverlayCandidate::FromDrawQuad(quad, &candidate))
+ if (!OverlayCandidate::FromDrawQuad(resource_provider, quad, &candidate))
return false;
candidate.plane_z_order = next_z_order--;
new_candidates.push_back(candidate);
« no previous file with comments | « cc/output/overlay_strategy_all_or_nothing.h ('k') | cc/output/overlay_strategy_sandwich.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698