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

Unified Diff: cc/scrollbar_layer_impl.h

Issue 11882037: Activate LayerImpl tree with sync+push instead of pointer swap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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
« no previous file with comments | « cc/scrollbar_animation_controller.h ('k') | cc/scrollbar_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_layer_impl.h
diff --git a/cc/scrollbar_layer_impl.h b/cc/scrollbar_layer_impl.h
index 8b194a2dcdc54900aa3d48ef6f9a9130d5251648..19d976315cb5b1b82fb06c18428ca3724f5001a9 100644
--- a/cc/scrollbar_layer_impl.h
+++ b/cc/scrollbar_layer_impl.h
@@ -20,6 +20,10 @@ public:
static scoped_ptr<ScrollbarLayerImpl> create(LayerTreeImpl* treeImpl, int id);
virtual ~ScrollbarLayerImpl();
+ virtual ScrollbarLayerImpl* toScrollbarLayer() OVERRIDE;
+ int scrollLayerId() const { return m_scrollLayerId; }
+ void setScrollLayerId(int id) { m_scrollLayerId = id; }
+
ScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry.get(); }
void setScrollbarGeometry(scoped_ptr<ScrollbarGeometryFixedThumb>);
void setScrollbarData(WebKit::WebScrollbar*);
@@ -28,7 +32,6 @@ public:
void setForeTrackResourceId(ResourceProvider::ResourceId id) { m_foreTrackResourceId = id; }
void setThumbResourceId(ResourceProvider::ResourceId id) { m_thumbResourceId = id; }
- void setOwningLayer(LayerImpl* owningLayer);
// ScrollbarLayerImplBase implementation.
virtual float currentPos() const OVERRIDE;
@@ -41,6 +44,9 @@ public:
virtual WebKit::WebScrollbar::Orientation orientation() const OVERRIDE;
+ virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl*) OVERRIDE;
+ virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
+
virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE;
virtual void didLoseOutputSurface() OVERRIDE;
@@ -93,6 +99,8 @@ private:
int m_totalSize;
int m_maximum;
+ int m_scrollLayerId;
+
// Data to implement Scrollbar
WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle;
WebKit::WebVector<WebKit::WebRect> m_tickmarks;
« no previous file with comments | « cc/scrollbar_animation_controller.h ('k') | cc/scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698