diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-31 00:11:05 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-31 00:11:05 +0000 |
commit | e728d1dbb22389af68d1adad7b18b985cde3bba1 (patch) | |
tree | b760162eea5504ac6fe637e2cc6d9a0f62b07432 /ui/gfx/canvas.h | |
parent | 6b1ac06375f8f41be58938a5e94bcf5af0086ee2 (diff) | |
download | chromium_src-e728d1dbb22389af68d1adad7b18b985cde3bba1.zip chromium_src-e728d1dbb22389af68d1adad7b18b985cde3bba1.tar.gz chromium_src-e728d1dbb22389af68d1adad7b18b985cde3bba1.tar.bz2 |
ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect.
BUG=100898
R=pkasting@chromium.org
Review URL: http://codereview.chromium.org/8405002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/canvas.h')
-rw-r--r-- | ui/gfx/canvas.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h index 2887b30..5da0bce 100644 --- a/ui/gfx/canvas.h +++ b/ui/gfx/canvas.h @@ -107,17 +107,15 @@ class UI_EXPORT Canvas { // Fills the specified region with the specified color using a transfer // mode of SkXfermode::kSrcOver_Mode. - virtual void FillRectInt(const SkColor& color, - int x, int y, int w, int h) = 0; + virtual void FillRect(const SkColor& color, const gfx::Rect& rect) = 0; - // Fills the specified region with the specified color and mode - virtual void FillRectInt(const SkColor& color, - int x, int y, int w, int h, - SkXfermode::Mode mode) = 0; + // Fills the specified region with the specified color and mode. + virtual void FillRect(const SkColor& color, + const gfx::Rect& rect, + SkXfermode::Mode mode) = 0; // Fills the specified region with the specified brush. - virtual void FillRectInt(const gfx::Brush* brush, - int x, int y, int w, int h) = 0; + virtual void FillRect(const gfx::Brush* brush, const gfx::Rect& rect) = 0; // Draws a single pixel rect in the specified region with the specified // color, using a transfer mode of SkXfermode::kSrcOver_Mode. |