diff options
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 78b3cfc7d0..0e6eb92537 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -347,6 +347,11 @@ GrRenderTarget* SkGpuDevice::accessRenderTarget() { return fRenderTarget; } +GrDrawContext* SkGpuDevice::accessDrawContext() { + ASSERT_SINGLE_OWNER + return fDrawContext.get(); +} + void SkGpuDevice::clearAll() { ASSERT_SINGLE_OWNER GrColor color = 0; |