OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/tiled_layer_impl.h" | 5 #include "cc/tiled_layer_impl.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "cc/append_quads_data.h" | 9 #include "cc/append_quads_data.h" |
10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
11 #include "cc/debug/debug_colors.h" | 11 #include "cc/debug/debug_colors.h" |
12 #include "cc/layer_tiling_data.h" | |
13 #include "cc/quad_sink.h" | 12 #include "cc/quad_sink.h" |
14 #include "cc/quads/checkerboard_draw_quad.h" | 13 #include "cc/quads/checkerboard_draw_quad.h" |
15 #include "cc/quads/debug_border_draw_quad.h" | 14 #include "cc/quads/debug_border_draw_quad.h" |
16 #include "cc/quads/solid_color_draw_quad.h" | 15 #include "cc/quads/solid_color_draw_quad.h" |
17 #include "cc/quads/tile_draw_quad.h" | 16 #include "cc/quads/tile_draw_quad.h" |
| 17 #include "cc/resources/layer_tiling_data.h" |
18 #include "third_party/khronos/GLES2/gl2.h" | 18 #include "third_party/khronos/GLES2/gl2.h" |
19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
20 #include "ui/gfx/quad_f.h" | 20 #include "ui/gfx/quad_f.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 // Temporary diagnostic. | 24 // Temporary diagnostic. |
25 static bool s_safe_to_delete_drawable_tile = false; | 25 static bool s_safe_to_delete_drawable_tile = false; |
26 | 26 |
27 class DrawableTile : public LayerTilingData::Tile { | 27 class DrawableTile : public LayerTilingData::Tile { |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 CHECK(tiler_); | 298 CHECK(tiler_); |
299 tiler_->reset(); | 299 tiler_->reset(); |
300 s_safe_to_delete_drawable_tile = false; | 300 s_safe_to_delete_drawable_tile = false; |
301 } | 301 } |
302 | 302 |
303 const char* TiledLayerImpl::LayerTypeAsString() const { | 303 const char* TiledLayerImpl::LayerTypeAsString() const { |
304 return "ContentLayer"; | 304 return "ContentLayer"; |
305 } | 305 } |
306 | 306 |
307 } // namespace cc | 307 } // namespace cc |
OLD | NEW |