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_processor.cc

Issue 1372103005: Refactor OverlayStrategySandwich and OverlayStrategyCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SolidColor
Patch Set: Delete OverlayStrategyCommon Created 5 years, 3 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.cc
diff --git a/cc/output/overlay_processor.cc b/cc/output/overlay_processor.cc
index ab334ec95344aef8d5d98a4cf14a50a001430a54..789fc13d7d076b7ec4db333646c7e10d21ff912e 100644
--- a/cc/output/overlay_processor.cc
+++ b/cc/output/overlay_processor.cc
@@ -25,15 +25,11 @@ void OverlayProcessor::Initialize() {
OverlayProcessor::~OverlayProcessor() {}
-void OverlayProcessor::ProcessForOverlays(
- RenderPassList* render_passes_in_draw_order,
- OverlayCandidateList* candidate_list) {
- for (StrategyList::iterator it = strategies_.begin(); it != strategies_.end();
- ++it) {
- if ((*it)->Attempt(render_passes_in_draw_order, candidate_list,
- surface_->device_scale_factor())) {
+void OverlayProcessor::ProcessForOverlays(RenderPassList* render_passes,
+ OverlayCandidateList* candidates) {
+ for (auto strategy : strategies_) {
+ if (strategy->Attempt(render_passes, candidates))
return;
- }
}
}

Powered by Google App Engine
This is Rietveld 408576698