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

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: Rebased to account for re-naming to PaintedScrollbarLayer. Created 7 years, 3 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/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 LayerAnimationEventObserver* animation_observer) { 1064 LayerAnimationEventObserver* animation_observer) {
1065 layer_animation_controller_->RemoveEventObserver(animation_observer); 1065 layer_animation_controller_->RemoveEventObserver(animation_observer);
1066 } 1066 }
1067 1067
1068 Region Layer::VisibleContentOpaqueRegion() const { 1068 Region Layer::VisibleContentOpaqueRegion() const {
1069 if (contents_opaque()) 1069 if (contents_opaque())
1070 return visible_content_rect(); 1070 return visible_content_rect();
1071 return Region(); 1071 return Region();
1072 } 1072 }
1073 1073
1074 PaintedScrollbarLayer* Layer::ToScrollbarLayer() { 1074 ScrollbarLayerInterface* Layer::ToScrollbarLayer() {
1075 return NULL; 1075 return NULL;
1076 } 1076 }
1077 1077
1078 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { 1078 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const {
1079 return layer_tree_host_->rendering_stats_instrumentation(); 1079 return layer_tree_host_->rendering_stats_instrumentation();
1080 } 1080 }
1081 1081
1082 bool Layer::SupportsLCDText() const { 1082 bool Layer::SupportsLCDText() const {
1083 return false; 1083 return false;
1084 } 1084 }
(...skipping 18 matching lines...) Expand all
1103 (*it)->clip_parent_ = NULL; 1103 (*it)->clip_parent_ = NULL;
1104 } 1104 }
1105 1105
1106 if (clip_parent_) 1106 if (clip_parent_)
1107 clip_parent_->RemoveClipChild(this); 1107 clip_parent_->RemoveClipChild(this);
1108 1108
1109 clip_parent_ = NULL; 1109 clip_parent_ = NULL;
1110 } 1110 }
1111 1111
1112 } // namespace cc 1112 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698