OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/output/overlay_processor.h" | 5 #include "cc/output/overlay_processor.h" |
6 | 6 |
7 #include "cc/output/output_surface.h" | 7 #include "cc/output/output_surface.h" |
8 #include "cc/output/overlay_strategy_single_on_top.h" | 8 #include "cc/output/overlay_strategy_single_on_top.h" |
9 #include "cc/output/overlay_strategy_underlay.h" | 9 #include "cc/output/overlay_strategy_underlay.h" |
10 #include "ui/gfx/geometry/rect_conversions.h" | 10 #include "ui/gfx/geometry/rect_conversions.h" |
(...skipping 11 matching lines...) Expand all Loading... | |
22 if (validator) | 22 if (validator) |
23 validator->GetStrategies(&strategies_); | 23 validator->GetStrategies(&strategies_); |
24 } | 24 } |
25 | 25 |
26 OverlayProcessor::~OverlayProcessor() {} | 26 OverlayProcessor::~OverlayProcessor() {} |
27 | 27 |
28 void OverlayProcessor::ProcessForOverlays(ResourceProvider* resource_provider, | 28 void OverlayProcessor::ProcessForOverlays(ResourceProvider* resource_provider, |
29 RenderPassList* render_passes, | 29 RenderPassList* render_passes, |
30 OverlayCandidateList* candidates, | 30 OverlayCandidateList* candidates, |
31 gfx::Rect* damage_rect) { | 31 gfx::Rect* damage_rect) { |
32 for (auto strategy : strategies_) { | 32 for (const scoped_ptr<Strategy>& strategy : strategies_) { |
danakj
2015/11/17 01:12:17
auto
vmpstr
2015/11/17 23:26:24
Done.
| |
33 if (strategy->Attempt(resource_provider, render_passes, candidates, | 33 if (strategy->Attempt(resource_provider, render_passes, candidates, |
34 damage_rect)) { | 34 damage_rect)) { |
35 return; | 35 return; |
36 } | 36 } |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 } // namespace cc | 40 } // namespace cc |
OLD | NEW |