From 7fe2839a49f64048d4530c22b3ca73efcc1d065c Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 27 Oct 2011 00:16:05 +0000 Subject: ui/gfx: Convert Canvas::TranslateInt() to use gfx::Point. BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8390037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107483 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/gfx/canvas.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'ui/gfx/canvas.h') diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h index 33b9f4e..189aeb4 100644 --- a/ui/gfx/canvas.h +++ b/ui/gfx/canvas.h @@ -19,7 +19,6 @@ class SkCanvas; namespace ui { class Transform; - typedef unsigned int TextureID; } @@ -99,17 +98,12 @@ class UI_EXPORT Canvas { // call Restore() more times than Save*(). virtual void Restore() = 0; - // Wrapper function that takes integer arguments. // Returns true if the clip is non-empty. - // See clipRect for specifics. - virtual bool ClipRectInt(const gfx::Rect& rect) = 0; + virtual bool ClipRect(const gfx::Rect& rect) = 0; - // Wrapper function that takes integer arguments. - // See translate() for specifics. - virtual void TranslateInt(int x, int y) = 0; + virtual void Translate(const gfx::Point& point) = 0; // Wrapper function that takes integer arguments. - // See scale() for specifics. virtual void ScaleInt(int x, int y) = 0; // Fills the specified region with the specified color using a transfer @@ -257,6 +251,6 @@ class UI_EXPORT CanvasPaint { virtual Canvas* AsCanvas() = 0; }; -} // namespace gfx; +} // namespace gfx #endif // UI_GFX_CANVAS_H_ -- cgit v1.1