diff options
author | 2011-08-12 16:13:34 +0000 | |
---|---|---|
committer | 2011-08-12 16:13:34 +0000 | |
commit | ff8a166e292871d70fddcf6128a00cccfba68250 (patch) | |
tree | 07f785fc8f7985e02f58ecd331d7257de65022bc /include/core | |
parent | 0be0157d7028a3f2fcbea67132829098eb09b168 (diff) |
move setOrigin to protected, as a stop-gap fix for proxy devices. will revert
soon I expect.
git-svn-id: http://skia.googlecode.com/svn/trunk@2108 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkDevice.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index f7c8bbcd35..083b893692 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -262,6 +262,11 @@ protected: virtual void lockPixels(); virtual void unlockPixels(); + // just called by SkCanvas when built as a layer + // TEMPORARY: promote from private to protected, until we find a better + // solution for proxy devices + void setOrigin(int x, int y) { fOrigin.set(x, y); } + private: friend class SkCanvas; friend struct DeviceCM; //for setMatrixClip @@ -269,8 +274,6 @@ private: friend class SkDrawIter; friend class SkDeviceFilteredPaint; - // just called by SkCanvas when built as a layer - void setOrigin(int x, int y) { fOrigin.set(x, y); } // just called by SkCanvas for saveLayer SkDevice* createCompatibleDeviceForSaveLayer(SkBitmap::Config config, int width, int height, |