summaryrefslogtreecommitdiffstats
path: root/gfx/canvas.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 18:28:20 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 18:28:20 +0000
commitf286f77eec2281993efe4dd408448903334d55eb (patch)
treef6d1a521ae0842a8313880bbb1436fef2c3ee497 /gfx/canvas.h
parent0940ddebe40365351c6fc53bfaf39bd7cd176249 (diff)
downloadchromium_src-f286f77eec2281993efe4dd408448903334d55eb.zip
chromium_src-f286f77eec2281993efe4dd408448903334d55eb.tar.gz
chromium_src-f286f77eec2281993efe4dd408448903334d55eb.tar.bz2
Implement initial ClipRect.
Move IntersectsClipRectInt and GetClipRect functions to CanvasSkia private, since they are only used internally. BUG=none TEST=see unittest. Review URL: http://codereview.chromium.org/2959014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/canvas.h')
-rw-r--r--gfx/canvas.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/gfx/canvas.h b/gfx/canvas.h
index af1dd01..49c67f2 100644
--- a/gfx/canvas.h
+++ b/gfx/canvas.h
@@ -81,18 +81,11 @@ class Canvas {
// call Restore() more times than Save*().
virtual void Restore() = 0;
- // Retrieves the clip rectangle and sets it in the specified rectangle if any.
- // Returns true if the clip rect is non-empty.
- virtual bool GetClipRect(gfx::Rect* clip_rect) = 0;
-
// Wrapper function that takes integer arguments.
// Returns true if the clip is non-empty.
// See clipRect for specifics.
virtual bool ClipRectInt(int x, int y, int w, int h) = 0;
- // Test whether the provided rectangle intersects the current clip rect.
- virtual bool IntersectsClipRectInt(int x, int y, int w, int h) = 0;
-
// Wrapper function that takes integer arguments.
// See translate() for specifics.
virtual void TranslateInt(int x, int y) = 0;