diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 21:44:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-01 21:44:40 +0000 |
commit | b8bdc427dc7802592bb2fea2b042f1db9667cd61 (patch) | |
tree | 9d1337b4b30ad85a14dd9307cedd0ce438c33f41 /ui/gfx/canvas.h | |
parent | 07407b6976668863b6ebff63674bfc90da89967f (diff) | |
download | chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.zip chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.tar.gz chromium_src-b8bdc427dc7802592bb2fea2b042f1db9667cd61.tar.bz2 |
Pass const gfx::Rect& as the first parameter to FillRect.
BUG=100898
R=pkasting@chromium.org
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9021046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/canvas.h')
-rw-r--r-- | ui/gfx/canvas.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h index c3aa3b0..d774309 100644 --- a/ui/gfx/canvas.h +++ b/ui/gfx/canvas.h @@ -105,17 +105,17 @@ class UI_EXPORT Canvas { virtual void Scale(int x_scale, int y_scale) = 0; - // Fills the specified region with the specified color using a transfer - // mode of SkXfermode::kSrcOver_Mode. - virtual void FillRect(const SkColor& color, const gfx::Rect& rect) = 0; + // Fills |rect| with |color| using a transfer mode of + // SkXfermode::kSrcOver_Mode. + virtual void FillRect(const gfx::Rect& rect, const SkColor& color) = 0; - // Fills the specified region with the specified color and mode. - virtual void FillRect(const SkColor& color, - const gfx::Rect& rect, + // Fills |rect| with the specified |color| and |mode|. + virtual void FillRect(const gfx::Rect& rect, + const SkColor& color, SkXfermode::Mode mode) = 0; - // Fills the specified region with the specified brush. - virtual void FillRect(const gfx::Brush* brush, const gfx::Rect& rect) = 0; + // Fills |rect| with the specified |brush|. + virtual void FillRect(const gfx::Rect& rect, const gfx::Brush* brush) = 0; // Draws a single pixel rect in the specified region with the specified // color, using a transfer mode of SkXfermode::kSrcOver_Mode. |