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

Unified Diff: ui/gfx/canvas.h

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland - WHAT HERE could have broken media_unittests???? Created 9 years, 1 month 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 | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index 96159578e5150433ccc64d1e805cdf36327105c3..7942a937002f7d2a119846955811e8d4cce7c8bb 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -122,20 +122,18 @@ class UI_EXPORT Canvas {
// color, using a transfer mode of SkXfermode::kSrcOver_Mode.
//
// NOTE: if you need a single pixel line, use DrawLineInt.
- virtual void DrawRectInt(const SkColor& color,
- int x, int y, int w, int h) = 0;
+ virtual void DrawRect(const gfx::Rect& rect, const SkColor& color) = 0;
// Draws a single pixel rect in the specified region with the specified
// color and transfer mode.
//
// NOTE: if you need a single pixel line, use DrawLineInt.
- virtual void DrawRectInt(const SkColor& color,
- int x, int y, int w, int h,
- SkXfermode::Mode mode) = 0;
+ virtual void DrawRect(const gfx::Rect& rect,
+ const SkColor& color,
+ SkXfermode::Mode mode) = 0;
// Draws the given rectangle with the given paint's parameters.
- virtual void DrawRectInt(int x, int y, int w, int h,
- const SkPaint& paint) = 0;
+ virtual void DrawRect(const gfx::Rect& rect, const SkPaint& paint) = 0;
// Draws a single pixel line with the specified color.
virtual void DrawLineInt(const SkColor& color,
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698