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

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

Issue 18191020: UI Resource Manager (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 5 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
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 #if USE_REGULAR_SCROLLBAR
8
7 #include "cc/animation/scrollbar_animation_controller.h" 9 #include "cc/animation/scrollbar_animation_controller.h"
8 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
9 #include "cc/layers/quad_sink.h" 11 #include "cc/layers/quad_sink.h"
10 #include "cc/quads/solid_color_draw_quad.h" 12 #include "cc/quads/solid_color_draw_quad.h"
11 #include "cc/quads/texture_draw_quad.h" 13 #include "cc/quads/texture_draw_quad.h"
12 #include "cc/trees/layer_tree_impl.h" 14 #include "cc/trees/layer_tree_impl.h"
13 #include "cc/trees/layer_tree_settings.h" 15 #include "cc/trees/layer_tree_settings.h"
14 #include "ui/gfx/rect_conversions.h" 16 #include "ui/gfx/rect_conversions.h"
15 17
16 namespace cc { 18 namespace cc {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void ScrollbarLayerImpl::DidLoseOutputSurface() { 263 void ScrollbarLayerImpl::DidLoseOutputSurface() {
262 track_resource_id_ = 0; 264 track_resource_id_ = 0;
263 thumb_resource_id_ = 0; 265 thumb_resource_id_ = 0;
264 } 266 }
265 267
266 const char* ScrollbarLayerImpl::LayerTypeAsString() const { 268 const char* ScrollbarLayerImpl::LayerTypeAsString() const {
267 return "cc::ScrollbarLayerImpl"; 269 return "cc::ScrollbarLayerImpl";
268 } 270 }
269 271
270 } // namespace cc 272 } // namespace cc
273
274 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698