diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-23 02:09:48 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-23 02:09:48 +0000 |
commit | 212e688d11b29489d00319a52eea8e28ba26c599 (patch) | |
tree | dbdbd1e297e0d9cae7c6c697eb544ab4b341b12e /ui/gfx/canvas.h | |
parent | 69c88e180549a1156037f22bd46f4937d3c1d3d7 (diff) | |
download | chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.zip chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.tar.gz chromium_src-212e688d11b29489d00319a52eea8e28ba26c599.tar.bz2 |
ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect.
BUG=100898
R=pkasting@chromium.org
Review URL: http://codereview.chromium.org/8476019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/canvas.h')
-rw-r--r-- | ui/gfx/canvas.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h index 9615957..7942a93 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, |