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

Unified Diff: cc/layers/layer_impl.h

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, 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index f06bfe43b6a878e73ac5e549326452d60c54ef97..183b3dfb638cdf60628e589c88efd82dc3ef0a1b 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -42,10 +42,10 @@ namespace cc {
class LayerTreeHostImpl;
class LayerTreeImpl;
-class PaintedScrollbarLayerImpl;
class QuadSink;
class Renderer;
class ScrollbarAnimationController;
+class ScrollbarLayerImplBase;
class Layer;
struct AppendQuadsData;
@@ -161,7 +161,7 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
virtual void UpdateTilePriorities() {}
- virtual PaintedScrollbarLayerImpl* ToScrollbarLayer();
+ virtual ScrollbarLayerImplBase* ToScrollbarLayer();
// Returns true if this layer has content to draw.
void SetDrawsContent(bool draws_content);
@@ -451,13 +451,13 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
void SetScrollbarOpacity(float opacity);
- void SetHorizontalScrollbarLayer(PaintedScrollbarLayerImpl* scrollbar_layer);
- PaintedScrollbarLayerImpl* horizontal_scrollbar_layer() {
+ void SetHorizontalScrollbarLayer(ScrollbarLayerImplBase* scrollbar_layer);
+ ScrollbarLayerImplBase* horizontal_scrollbar_layer() {
return horizontal_scrollbar_layer_;
}
- void SetVerticalScrollbarLayer(PaintedScrollbarLayerImpl* scrollbar_layer);
- PaintedScrollbarLayerImpl* vertical_scrollbar_layer() {
+ void SetVerticalScrollbarLayer(ScrollbarLayerImplBase* scrollbar_layer);
+ ScrollbarLayerImplBase* vertical_scrollbar_layer() {
return vertical_scrollbar_layer_;
}
@@ -615,8 +615,8 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
// Weak pointers to this layer's scrollbars, if it has them. Updated during
// tree synchronization.
- PaintedScrollbarLayerImpl* horizontal_scrollbar_layer_;
- PaintedScrollbarLayerImpl* vertical_scrollbar_layer_;
+ ScrollbarLayerImplBase* horizontal_scrollbar_layer_;
+ ScrollbarLayerImplBase* vertical_scrollbar_layer_;
ScopedPtrVector<CopyOutputRequest> copy_requests_;

Powered by Google App Engine
This is Rietveld 408576698