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/scrollbar_layer_impl.h" | 5 #include "cc/layers/scrollbar_layer_impl.h" |
6 | 6 |
7 #include "cc/animation/scrollbar_animation_controller.h" | 7 #include "cc/animation/scrollbar_animation_controller.h" |
8 #include "cc/layers/layer.h" | 8 #include "cc/layers/layer.h" |
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 void ScrollbarLayerImpl::DidLoseOutputSurface() { | 253 void ScrollbarLayerImpl::DidLoseOutputSurface() { |
254 track_resource_id_ = 0; | 254 track_resource_id_ = 0; |
255 thumb_resource_id_ = 0; | 255 thumb_resource_id_ = 0; |
256 } | 256 } |
257 | 257 |
258 const char* ScrollbarLayerImpl::LayerTypeAsString() const { | 258 const char* ScrollbarLayerImpl::LayerTypeAsString() const { |
259 return "cc::ScrollbarLayerImpl"; | 259 return "cc::ScrollbarLayerImpl"; |
260 } | 260 } |
261 | 261 |
| 262 bool ScrollbarLayerImpl::CanDrawInTilelessSoftwareMode() const { |
| 263 return layer_tree_impl()->settings().solid_color_scrollbars; |
| 264 } |
| 265 |
262 } // namespace cc | 266 } // namespace cc |
OLD | NEW |