Index: cc/layers/scrollbar_theme_painter.h |
diff --git a/cc/layers/scrollbar_theme_painter.h b/cc/layers/scrollbar_theme_painter.h |
index f7553ac0e288ac99a8b96b583a16ea011ecc2bb9..8f3e68d8dcbd63d809b6689fc8f251e18cc09c68 100644 |
--- a/cc/layers/scrollbar_theme_painter.h |
+++ b/cc/layers/scrollbar_theme_painter.h |
@@ -19,16 +19,24 @@ class CC_EXPORT ScrollbarThemePainter { |
public: |
virtual ~ScrollbarThemePainter() {} |
- virtual void PaintScrollbarBackground(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintBackButtonEnd(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintForwardButtonStart(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintForwardButtonEnd(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintTickmarks(SkCanvas* canvas, gfx::Rect rect) = 0; |
- virtual void PaintThumb(SkCanvas* canvas, gfx::Rect rect) = 0; |
+ virtual void PaintScrollbarBackground(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintTrackBackground(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintBackTrackPart(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintForwardTrackPart(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintBackButtonStart(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintBackButtonEnd(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintForwardButtonStart(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintForwardButtonEnd(SkCanvas* canvas, |
+ const gfx::Rect& rect) = 0; |
+ virtual void PaintTickmarks(SkCanvas* canvas, const gfx::Rect& rect) = 0; |
+ virtual void PaintThumb(SkCanvas* canvas, const gfx::Rect& rect) = 0; |
}; |
} // namespace cc |