diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 5 | ||||
-rw-r--r-- | src/gpu/SkGpuDevice.h | 1 |
2 files changed, 6 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; diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h index 49bf13c438..8420449a9a 100644 --- a/src/gpu/SkGpuDevice.h +++ b/src/gpu/SkGpuDevice.h @@ -71,6 +71,7 @@ public: void replaceRenderTarget(bool shouldRetainContent); GrRenderTarget* accessRenderTarget() override; + GrDrawContext* accessDrawContext() override; SkImageInfo imageInfo() const override { return fLegacyBitmap.info(); |