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/scrollbar_theme_painter.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! 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/scrollbar_layer_impl_base.cc ('k') | cc/layers/tiled_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/layers/scrollbar_layer_impl_base.cc ('k') | cc/layers/tiled_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698