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/solid_color_layer_impl.h" | 5 #include "cc/layers/solid_color_layer_impl.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 |
7 #include "cc/layers/quad_sink.h" | 9 #include "cc/layers/quad_sink.h" |
8 #include "cc/quads/solid_color_draw_quad.h" | 10 #include "cc/quads/solid_color_draw_quad.h" |
9 | 11 |
10 namespace cc { | 12 namespace cc { |
11 | 13 |
12 SolidColorLayerImpl::SolidColorLayerImpl(LayerTreeImpl* tree_impl, int id) | 14 SolidColorLayerImpl::SolidColorLayerImpl(LayerTreeImpl* tree_impl, int id) |
13 : LayerImpl(tree_impl, id), | 15 : LayerImpl(tree_impl, id), |
14 tile_size_(256) {} | 16 tile_size_(256) {} |
15 | 17 |
16 SolidColorLayerImpl::~SolidColorLayerImpl() {} | 18 SolidColorLayerImpl::~SolidColorLayerImpl() {} |
(...skipping 24 matching lines...) Expand all Loading... |
41 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); | 43 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); |
42 } | 44 } |
43 } | 45 } |
44 } | 46 } |
45 | 47 |
46 const char* SolidColorLayerImpl::LayerTypeAsString() const { | 48 const char* SolidColorLayerImpl::LayerTypeAsString() const { |
47 return "SolidColorLayer"; | 49 return "SolidColorLayer"; |
48 } | 50 } |
49 | 51 |
50 } // namespace cc | 52 } // namespace cc |
OLD | NEW |