Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: cc/layers/scrollbar_layer_impl.cc

Issue 16211002: Skip drawing unsupported layers in forced software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698