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

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

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments; plumb scrollbar color via flag. Created 7 years, 4 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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 LayerAnimationEventObserver* animation_observer) { 960 LayerAnimationEventObserver* animation_observer) {
961 layer_animation_controller_->RemoveEventObserver(animation_observer); 961 layer_animation_controller_->RemoveEventObserver(animation_observer);
962 } 962 }
963 963
964 Region Layer::VisibleContentOpaqueRegion() const { 964 Region Layer::VisibleContentOpaqueRegion() const {
965 if (contents_opaque()) 965 if (contents_opaque())
966 return visible_content_rect(); 966 return visible_content_rect();
967 return Region(); 967 return Region();
968 } 968 }
969 969
970 ScrollbarLayer* Layer::ToScrollbarLayer() { 970 ScrollbarLayerInterface* Layer::ToScrollbarLayer() {
971 return NULL; 971 return NULL;
972 } 972 }
973 973
974 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { 974 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const {
975 return layer_tree_host_->rendering_stats_instrumentation(); 975 return layer_tree_host_->rendering_stats_instrumentation();
976 } 976 }
977 977
978 bool Layer::SupportsLCDText() const { 978 bool Layer::SupportsLCDText() const {
979 return false; 979 return false;
980 } 980 }
981 981
982 } // namespace cc 982 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698