diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/SkGpuDevice.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h index 40444a975c..2390cdb44c 100644 --- a/include/gpu/SkGpuDevice.h +++ b/include/gpu/SkGpuDevice.h @@ -55,8 +55,7 @@ public: * Override from SkGpuDevice, so we can set our FBO to be the render target * The canvas parameter must be a SkGpuCanvas */ - virtual void gainFocus(SkCanvas*, const SkMatrix&, const SkRegion&, - const SkClipStack& clipStack) SK_OVERRIDE; + virtual void gainFocus(const SkMatrix&, const SkRegion&) SK_OVERRIDE; virtual SkGpuRenderTarget* accessRenderTarget() SK_OVERRIDE; @@ -101,6 +100,9 @@ public: virtual void flush(); + virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; + virtual void onDetachFromCanvas() SK_OVERRIDE; + /** * Make's this device's rendertarget current in the underlying 3D API. * Also implicitly flushes. @@ -131,6 +133,9 @@ private: GrSkDrawProcs* fDrawProcs; + // the clip stack - on loan to us from SkCanvas so it can be NULL. + const SkClipStack* fClipStack; + // state for our offscreen render-target TexCache fCache; GrTexture* fTexture; |