diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkDevice.h | 9 | ||||
-rw-r--r-- | include/gpu/SkGpuDevice.h | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 142748c0cd..b9cafc75c1 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -30,6 +30,9 @@ class SkMatrix; class SkMetaData; class SkRegion; +// This is an opaque classes, not interpreted by skia +class SkGpuRenderTarget; + class SK_API SkDevice : public SkRefCnt { public: // SkDevice(); @@ -135,10 +138,10 @@ public: virtual void lockPixels(); virtual void unlockPixels(); - /** Return the device's associated texture, or NULL. If returned, it may be - drawn into another device + /** + * Return the device's associated gpu render target, or NULL. */ - virtual SkGpuTexture* accessTexture() { return NULL; } + virtual SkGpuRenderTarget* accessRenderTarget() { return NULL; } /** * Called with the correct matrix and clip before this device is drawn diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h index 2bea0bf28c..bddf24ec3a 100644 --- a/include/gpu/SkGpuDevice.h +++ b/include/gpu/SkGpuDevice.h @@ -74,7 +74,9 @@ public: virtual void gainFocus(SkCanvas*, const SkMatrix&, const SkRegion&, const SkClipStack& clipStack); - virtual SkGpuTexture* accessTexture() { return (SkGpuTexture*)fTexture; } + virtual SkGpuRenderTarget* accessRenderTarget() { + return (SkGpuRenderTarget*)fRenderTarget; + } // overrides from SkDevice |