diff options
Diffstat (limited to 'include/gpu/SkGpuDeviceFactory.h')
-rw-r--r-- | include/gpu/SkGpuDeviceFactory.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/gpu/SkGpuDeviceFactory.h b/include/gpu/SkGpuDeviceFactory.h index dd57da2c75..5dcba6a293 100644 --- a/include/gpu/SkGpuDeviceFactory.h +++ b/include/gpu/SkGpuDeviceFactory.h @@ -26,8 +26,14 @@ public: /** * The constructor will ref() the context, passing it to each device * that it creates. It will be unref()'d in the destructor + * Non-layered devices created by the factory will draw to the + * rootRenderTarget. rootRenderTarget is ref-counted by the factory. + * SkGpuDevice::Current3DApiRenderTarget() can be passed as a special + * value that will cause the factory to create a render target object + * that reflects the state of the underlying 3D API at the time of + * construction. */ - SkGpuDeviceFactory(GrContext*); + SkGpuDeviceFactory(GrContext*, GrRenderTarget* rootRenderTarget); virtual ~SkGpuDeviceFactory(); @@ -36,6 +42,7 @@ public: private: GrContext* fContext; + GrRenderTarget* fRootRenderTarget; }; #endif |