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/surfaces/surface_aggregator.h" | 5 #include "cc/surfaces/surface_aggregator.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
12 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
13 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
14 #include "cc/base/math_util.h" | 17 #include "cc/base/math_util.h" |
15 #include "cc/output/compositor_frame.h" | 18 #include "cc/output/compositor_frame.h" |
16 #include "cc/output/delegated_frame_data.h" | 19 #include "cc/output/delegated_frame_data.h" |
17 #include "cc/quads/draw_quad.h" | 20 #include "cc/quads/draw_quad.h" |
18 #include "cc/quads/render_pass_draw_quad.h" | 21 #include "cc/quads/render_pass_draw_quad.h" |
19 #include "cc/quads/shared_quad_state.h" | 22 #include "cc/quads/shared_quad_state.h" |
20 #include "cc/quads/surface_draw_quad.h" | 23 #include "cc/quads/surface_draw_quad.h" |
21 #include "cc/surfaces/surface.h" | 24 #include "cc/surfaces/surface.h" |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 716 |
714 void SurfaceAggregator::SetFullDamageForSurface(SurfaceId surface_id) { | 717 void SurfaceAggregator::SetFullDamageForSurface(SurfaceId surface_id) { |
715 auto it = previous_contained_surfaces_.find(surface_id); | 718 auto it = previous_contained_surfaces_.find(surface_id); |
716 if (it == previous_contained_surfaces_.end()) | 719 if (it == previous_contained_surfaces_.end()) |
717 return; | 720 return; |
718 // Set the last drawn index as 0 to ensure full damage next time it's drawn. | 721 // Set the last drawn index as 0 to ensure full damage next time it's drawn. |
719 it->second = 0; | 722 it->second = 0; |
720 } | 723 } |
721 | 724 |
722 } // namespace cc | 725 } // namespace cc |
OLD | NEW |