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

Unified Diff: ui/gfx/canvas_direct2d.h

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix Created 9 years, 2 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 | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_direct2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_direct2d.h
diff --git a/ui/gfx/canvas_direct2d.h b/ui/gfx/canvas_direct2d.h
index dc3cc8d15f2e36d5ea56b28c9d2592fdfd875693..c5e6ad8a567085c5c72256317c4e4fa45e1d4cd8 100644
--- a/ui/gfx/canvas_direct2d.h
+++ b/ui/gfx/canvas_direct2d.h
@@ -34,13 +34,12 @@ class UI_EXPORT CanvasDirect2D : public Canvas {
virtual bool ClipRect(const gfx::Rect& rect) OVERRIDE;
virtual void Translate(const gfx::Point& point) OVERRIDE;
virtual void Scale(int x_scale, int y_scale) OVERRIDE;
- virtual void FillRectInt(const SkColor& color,
- int x, int y, int w, int h) OVERRIDE;
- virtual void FillRectInt(const SkColor& color,
- int x, int y, int w, int h,
- SkXfermode::Mode mode) OVERRIDE;
- virtual void FillRectInt(const gfx::Brush* brush,
- int x, int y, int w, int h) OVERRIDE;
+ virtual void FillRect(const SkColor& color, const gfx::Rect& rect) OVERRIDE;
+ virtual void FillRect(const SkColor& color,
+ const gfx::Rect& rect,
+ SkXfermode::Mode mode) OVERRIDE;
+ virtual void FillRect(const gfx::Brush* brush,
+ const gfx::Rect& rect) OVERRIDE;
virtual void DrawRectInt(const SkColor& color,
int x, int y, int w, int h) OVERRIDE;
virtual void DrawRectInt(const SkColor& color,
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_direct2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698