| 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/ca_layer_overlay.h" |
| 7 #include "cc/output/output_surface.h" | 8 #include "cc/output/output_surface.h" |
| 9 #include "cc/output/overlay_candidate.h" |
| 8 #include "cc/output/overlay_strategy_single_on_top.h" | 10 #include "cc/output/overlay_strategy_single_on_top.h" |
| 9 #include "cc/output/overlay_strategy_underlay.h" | 11 #include "cc/output/overlay_strategy_underlay.h" |
| 10 #include "cc/quads/draw_quad.h" | 12 #include "cc/quads/draw_quad.h" |
| 11 #include "ui/gfx/geometry/rect_conversions.h" | 13 #include "ui/gfx/geometry/rect_conversions.h" |
| 12 #include "ui/gfx/transform.h" | 14 #include "ui/gfx/transform.h" |
| 13 | 15 |
| 14 namespace cc { | 16 namespace cc { |
| 15 | 17 |
| 16 OverlayProcessor::OverlayProcessor(OutputSurface* surface) : surface_(surface) { | 18 OverlayProcessor::OverlayProcessor(OutputSurface* surface) : surface_(surface) { |
| 17 } | 19 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 118 } |
| 117 | 119 |
| 118 if (this_frame_underlay_rect == previous_frame_underlay_rect_) | 120 if (this_frame_underlay_rect == previous_frame_underlay_rect_) |
| 119 damage_rect->Subtract(this_frame_underlay_rect); | 121 damage_rect->Subtract(this_frame_underlay_rect); |
| 120 previous_frame_underlay_rect_ = this_frame_underlay_rect; | 122 previous_frame_underlay_rect_ = this_frame_underlay_rect; |
| 121 | 123 |
| 122 damage_rect->Union(output_surface_overlay_damage_rect); | 124 damage_rect->Union(output_surface_overlay_damage_rect); |
| 123 } | 125 } |
| 124 | 126 |
| 125 } // namespace cc | 127 } // namespace cc |
| OLD | NEW |