aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDevice.h
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-05 17:05:05 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-05 17:05:05 +0000
commitd53f7c28bf8aecd5b7f0ee2189ac97e309a1b06d (patch)
tree032099d426cb18c8316b9ee85f10107db90aa30c /include/core/SkDevice.h
parentc3e159a325892e5a271c06285631c2f5a2277617 (diff)
make getOrigin() public so callers can adjust layer
git-svn-id: http://skia.googlecode.com/svn/trunk@2970 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r--include/core/SkDevice.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index fcb118cee3..f817c65ddc 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -129,11 +129,6 @@ public:
*/
virtual SkGpuRenderTarget* accessRenderTarget() { return NULL; }
-protected:
- enum Usage {
- kGeneral_Usage,
- kSaveLayer_Usage, // <! internal use only
- };
/**
* Return the device's origin: its offset in device coordinates from
@@ -141,6 +136,12 @@ protected:
*/
const SkIPoint& getOrigin() const { return fOrigin; }
+protected:
+ enum Usage {
+ kGeneral_Usage,
+ kSaveLayer_Usage, // <! internal use only
+ };
+
struct TextFlags {
uint32_t fFlags; // SkPaint::getFlags()
SkPaint::Hinting fHinting;