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

Unified Diff: cc/layers/painted_scrollbar_layer.h

Issue 135183016: Revert of Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/layers/layer_unittest.cc ('k') | cc/layers/painted_scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/painted_scrollbar_layer.h
diff --git a/cc/layers/painted_scrollbar_layer.h b/cc/layers/painted_scrollbar_layer.h
index 0b844513666f22966db2a1eeb11e0f417ebf0fa4..c24c0aa70e329fd3892ac466ee3771f424a0b5b1 100644
--- a/cc/layers/painted_scrollbar_layer.h
+++ b/cc/layers/painted_scrollbar_layer.h
@@ -24,15 +24,14 @@
static scoped_refptr<PaintedScrollbarLayer> Create(
scoped_ptr<Scrollbar> scrollbar,
- Layer* scroll_layer);
+ int scroll_layer_id);
virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE;
// ScrollbarLayerInterface
virtual int ScrollLayerId() const OVERRIDE;
- virtual void SetScrollLayer(scoped_refptr<Layer> layer) OVERRIDE;
- virtual void SetClipLayer(scoped_refptr<Layer> layer) OVERRIDE;
+ virtual void SetScrollLayerId(int id) OVERRIDE;
virtual ScrollbarOrientation orientation() const OVERRIDE;
@@ -41,7 +40,6 @@
const OcclusionTracker* occlusion) OVERRIDE;
virtual void SetLayerTreeHost(LayerTreeHost* host) OVERRIDE;
virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
- virtual void PushScrollClipPropertiesTo(LayerImpl* layer) OVERRIDE;
virtual void CalculateContentsScale(float ideal_contents_scale,
float device_scale_factor,
float page_scale_factor,
@@ -51,7 +49,7 @@
gfx::Size* content_bounds) OVERRIDE;
protected:
- PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, Layer* scroll_layer);
+ PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, int scroll_layer_id);
virtual ~PaintedScrollbarLayer();
// For unit tests
@@ -81,8 +79,7 @@
ScrollbarPart part);
scoped_ptr<Scrollbar> scrollbar_;
- scoped_refptr<Layer> scroll_layer_;
- scoped_refptr<Layer> clip_layer_;
+ int scroll_layer_id_;
// Snapshot of properties taken in UpdateThumbAndTrackGeometry and used in
// PushPropertiesTo.
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/painted_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698