diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-13 15:36:15 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-13 15:36:15 +0000 |
commit | 40a1ae4df28810aa5aa5cf2627d8387b2dfb867a (patch) | |
tree | e8bbec850fcdf04ca761491f67a9520dcccd9253 /include/gpu | |
parent | 7fb2601e7af7b572cb8028fd4ae639d088e61288 (diff) |
Added SkDevice onAttachToCanvas & onDetachFromCanvas methods
http://codereview.appspot.com/6348100/
git-svn-id: http://skia.googlecode.com/svn/trunk@4598 2bbb7eff-a529-9590-31e7-b0007b416f81
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; |