summaryrefslogtreecommitdiffstats
path: root/ui/gfx/canvas.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-27 00:16:05 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-27 00:16:05 +0000
commit7fe2839a49f64048d4530c22b3ca73efcc1d065c (patch)
treea55bd1e9f1f279e943a3acc27ccd284cd456fc3e /ui/gfx/canvas.h
parentcc07b048f1d76e73f0b0f2c1aac9baa574683af8 (diff)
downloadchromium_src-7fe2839a49f64048d4530c22b3ca73efcc1d065c.zip
chromium_src-7fe2839a49f64048d4530c22b3ca73efcc1d065c.tar.gz
chromium_src-7fe2839a49f64048d4530c22b3ca73efcc1d065c.tar.bz2
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
Diffstat (limited to 'ui/gfx/canvas.h')
-rw-r--r--ui/gfx/canvas.h12
1 files changed, 3 insertions, 9 deletions
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_