| 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_strategy_single_on_top.h" | 5 #include "cc/output/overlay_strategy_single_on_top.h" |
| 6 | 6 |
| 7 #include "cc/output/output_surface.h" | |
| 8 #include "cc/quads/draw_quad.h" | 7 #include "cc/quads/draw_quad.h" |
| 9 #include "cc/quads/texture_draw_quad.h" | 8 #include "cc/quads/texture_draw_quad.h" |
| 10 #include "ui/gfx/rect_conversions.h" | 9 #include "ui/gfx/geometry/rect_conversions.h" |
| 11 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
| 12 | 11 |
| 13 namespace cc { | 12 namespace cc { |
| 14 | 13 |
| 15 OverlayStrategySingleOnTop::OverlayStrategySingleOnTop( | 14 OverlayStrategySingleOnTop::OverlayStrategySingleOnTop( |
| 16 OverlayCandidateValidator* capability_checker, | 15 OverlayCandidateValidator* capability_checker, |
| 17 ResourceProvider* resource_provider) | 16 ResourceProvider* resource_provider) |
| 18 : capability_checker_(capability_checker), | 17 : capability_checker_(capability_checker), |
| 19 resource_provider_(resource_provider) {} | 18 resource_provider_(resource_provider) {} |
| 20 | 19 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 if (candidates[1].overlay_handled) { | 71 if (candidates[1].overlay_handled) { |
| 73 scoped_ptr<DrawQuad> overlay_quad = quad_list.take(quad_list.begin()); | 72 scoped_ptr<DrawQuad> overlay_quad = quad_list.take(quad_list.begin()); |
| 74 quad_list.erase(quad_list.begin()); | 73 quad_list.erase(quad_list.begin()); |
| 75 candidate_list->swap(candidates); | 74 candidate_list->swap(candidates); |
| 76 return true; | 75 return true; |
| 77 } | 76 } |
| 78 return false; | 77 return false; |
| 79 } | 78 } |
| 80 | 79 |
| 81 } // namespace cc | 80 } // namespace cc |
| OLD | NEW |