diff options
Diffstat (limited to 'cc/scrollbar_layer.h')
-rw-r--r-- | cc/scrollbar_layer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/scrollbar_layer.h b/cc/scrollbar_layer.h index dcadfc2..6101dfb 100644 --- a/cc/scrollbar_layer.h +++ b/cc/scrollbar_layer.h @@ -30,6 +30,7 @@ public: virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, RenderingStats&) OVERRIDE; virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; + virtual void setContentsScale(float contentsScale) OVERRIDE; int scrollLayerId() const { return m_scrollLayerId; } void setScrollLayerId(int id) { m_scrollLayerId = id; } @@ -45,6 +46,9 @@ private: void createUpdaterIfNeeded(); gfx::Rect scrollbarLayerRectToContentRect(const gfx::Rect& layerRect) const; + int maxTextureSize(); + float clampScaleToMaxTextureSize(float scale); + scoped_ptr<WebKit::WebScrollbar> m_scrollbar; WebKit::WebScrollbarThemePainter m_painter; scoped_ptr<WebKit::WebScrollbarThemeGeometry> m_geometry; |