OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/layers/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <limits> | 9 #include <limits> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "base/trace_event/trace_event_argument.h" | 13 #include "base/trace_event/trace_event_argument.h" |
14 #include "cc/base/math_util.h" | 14 #include "cc/base/math_util.h" |
15 #include "cc/debug/debug_colors.h" | 15 #include "cc/debug/debug_colors.h" |
16 #include "cc/debug/micro_benchmark_impl.h" | 16 #include "cc/debug/micro_benchmark_impl.h" |
17 #include "cc/debug/traced_value.h" | 17 #include "cc/debug/traced_value.h" |
18 #include "cc/layers/append_quads_data.h" | 18 #include "cc/layers/append_quads_data.h" |
19 #include "cc/layers/solid_color_layer_impl.h" | 19 #include "cc/layers/solid_color_layer_impl.h" |
20 #include "cc/output/begin_frame_args.h" | 20 #include "cc/output/begin_frame_args.h" |
21 #include "cc/quads/checkerboard_draw_quad.h" | |
22 #include "cc/quads/debug_border_draw_quad.h" | 21 #include "cc/quads/debug_border_draw_quad.h" |
23 #include "cc/quads/picture_draw_quad.h" | 22 #include "cc/quads/picture_draw_quad.h" |
24 #include "cc/quads/solid_color_draw_quad.h" | 23 #include "cc/quads/solid_color_draw_quad.h" |
25 #include "cc/quads/tile_draw_quad.h" | 24 #include "cc/quads/tile_draw_quad.h" |
26 #include "cc/tiles/tile_manager.h" | 25 #include "cc/tiles/tile_manager.h" |
27 #include "cc/tiles/tiling_set_raster_queue_all.h" | 26 #include "cc/tiles/tiling_set_raster_queue_all.h" |
28 #include "cc/trees/layer_tree_impl.h" | 27 #include "cc/trees/layer_tree_impl.h" |
29 #include "cc/trees/occlusion.h" | 28 #include "cc/trees/occlusion.h" |
30 #include "ui/gfx/geometry/quad_f.h" | 29 #include "ui/gfx/geometry/quad_f.h" |
31 #include "ui/gfx/geometry/rect_conversions.h" | 30 #include "ui/gfx/geometry/rect_conversions.h" |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 | 1216 |
1218 bool PictureLayerImpl::IsOnActiveOrPendingTree() const { | 1217 bool PictureLayerImpl::IsOnActiveOrPendingTree() const { |
1219 return !layer_tree_impl()->IsRecycleTree(); | 1218 return !layer_tree_impl()->IsRecycleTree(); |
1220 } | 1219 } |
1221 | 1220 |
1222 bool PictureLayerImpl::HasValidTilePriorities() const { | 1221 bool PictureLayerImpl::HasValidTilePriorities() const { |
1223 return IsOnActiveOrPendingTree() && IsDrawnRenderSurfaceLayerListMember(); | 1222 return IsOnActiveOrPendingTree() && IsDrawnRenderSurfaceLayerListMember(); |
1224 } | 1223 } |
1225 | 1224 |
1226 } // namespace cc | 1225 } // namespace cc |
OLD | NEW |