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> | 7 #include <algorithm> |
8 | 8 |
9 #include "cc/layers/quad_sink.h" | 9 #include "cc/layers/quad_sink.h" |
10 #include "cc/quads/solid_color_draw_quad.h" | 10 #include "cc/quads/solid_color_draw_quad.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 shared_quad_state, solid_tile_rect, background_color(), false); | 43 shared_quad_state, solid_tile_rect, background_color(), false); |
44 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); | 44 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); |
45 } | 45 } |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 const char* SolidColorLayerImpl::LayerTypeAsString() const { | 49 const char* SolidColorLayerImpl::LayerTypeAsString() const { |
50 return "cc::SolidColorLayerImpl"; | 50 return "cc::SolidColorLayerImpl"; |
51 } | 51 } |
52 | 52 |
| 53 bool SolidColorLayerImpl::CanDrawInTilelessSoftwareMode() const { |
| 54 return true; |
| 55 } |
| 56 |
53 } // namespace cc | 57 } // namespace cc |
OLD | NEW |