summaryrefslogtreecommitdiffstats
path: root/ui/gfx/transform.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-17 17:19:50 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-17 17:19:50 +0000
commit3d19a5357ffa400a6c276619b81f75b5e06fa973 (patch)
tree655c5ac776ead235fff4e4ada7db8503826c14a6 /ui/gfx/transform.h
parenta9e735b5978a5346c1c33ab6e292824aed03fb63 (diff)
downloadchromium_src-3d19a5357ffa400a6c276619b81f75b5e06fa973.zip
chromium_src-3d19a5357ffa400a6c276619b81f75b5e06fa973.tar.gz
chromium_src-3d19a5357ffa400a6c276619b81f75b5e06fa973.tar.bz2
Take transforms into consideration when deciding the dirty region for child views.
BUG=none TEST=the close button of the rotated window highlights on hover. Review URL: http://codereview.chromium.org/7193025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/transform.h')
-rw-r--r--ui/gfx/transform.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
index 3fdfc32..aa5a675 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -71,19 +71,19 @@ class Transform {
// Applies the transformation on the point. Returns true if the point is
// transformed successfully.
- bool TransformPoint(gfx::Point* point);
+ bool TransformPoint(gfx::Point* point) const;
// Applies the reverse transformation on the point. Returns true if the point
// is transformed successfully.
- bool TransformPointReverse(gfx::Point* point);
+ bool TransformPointReverse(gfx::Point* point) const;
// Applies transformation on the rectangle. Returns true if the rectangle is
// transformed successfully.
- bool TransformRect(gfx::Rect* rect);
+ bool TransformRect(gfx::Rect* rect) const;
// Applies the reverse transformation on the rectangle. Returns true if the
// rectangle is transformed successfully.
- bool TransformRectReverse(gfx::Rect* rect);
+ bool TransformRectReverse(gfx::Rect* rect) const;
// Returns the underlying matrix.
const SkMatrix& matrix() const { return matrix_; }