| 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,
|
|
|