| 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;
|
| - }
|
| }
|
| }
|
|
|
|
|