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

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 tfarina@'s comments. 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 | 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 LayerAnimationEventObserver* animation_observer) { 882 LayerAnimationEventObserver* animation_observer) {
883 layer_animation_controller_->RemoveEventObserver(animation_observer); 883 layer_animation_controller_->RemoveEventObserver(animation_observer);
884 } 884 }
885 885
886 Region Layer::VisibleContentOpaqueRegion() const { 886 Region Layer::VisibleContentOpaqueRegion() const {
887 if (contents_opaque()) 887 if (contents_opaque())
888 return visible_content_rect(); 888 return visible_content_rect();
889 return Region(); 889 return Region();
890 } 890 }
891 891
892 ScrollbarLayer* Layer::ToScrollbarLayer() { 892 ScrollbarLayerBase* Layer::ToScrollbarLayerBase() {
893 return NULL; 893 return NULL;
894 } 894 }
895 895
896 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { 896 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const {
897 return layer_tree_host_->rendering_stats_instrumentation(); 897 return layer_tree_host_->rendering_stats_instrumentation();
898 } 898 }
899 899
900 bool Layer::SupportsLCDText() const { 900 bool Layer::SupportsLCDText() const {
901 return false; 901 return false;
902 } 902 }
903 903
904 } // namespace cc 904 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | cc/layers/scrollbar_layer_impl_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698