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

Unified Diff: cc/output/overlay_strategy_sandwich.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_sandwich.h ('k') | cc/output/overlay_strategy_single_on_top.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_sandwich.cc
diff --git a/cc/output/overlay_strategy_sandwich.cc b/cc/output/overlay_strategy_sandwich.cc
index 515afa5c820a2999a4bdaa28640b66fe1cb84949..79279adbe9c3ec1bfcd494036e9d25b332f434e2 100644
--- a/cc/output/overlay_strategy_sandwich.cc
+++ b/cc/output/overlay_strategy_sandwich.cc
@@ -40,12 +40,13 @@ OverlayStrategySandwich::OverlayStrategySandwich(
OverlayStrategySandwich::~OverlayStrategySandwich() {}
-bool OverlayStrategySandwich::Attempt(RenderPassList* render_passes,
+bool OverlayStrategySandwich::Attempt(ResourceProvider* resource_provider,
+ RenderPassList* render_passes,
OverlayCandidateList* candidate_list) {
QuadList& quad_list = render_passes->back()->quad_list;
for (auto it = quad_list.begin(); it != quad_list.end();) {
OverlayCandidate candidate;
- if (OverlayCandidate::FromDrawQuad(*it, &candidate))
+ if (OverlayCandidate::FromDrawQuad(resource_provider, *it, &candidate))
it = TryOverlay(render_passes->back(), candidate_list, candidate, it);
else
++it;
« no previous file with comments | « cc/output/overlay_strategy_sandwich.h ('k') | cc/output/overlay_strategy_single_on_top.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698