diff options
author | 2017-01-13 09:18:59 -0500 | |
---|---|---|
committer | 2017-01-13 16:09:34 +0000 | |
commit | 75a475cf2e7c66eb58b6b8b1441deb5911e53181 (patch) | |
tree | da854469d3f2af6cbf931610d6e5b4d095bb2e89 /include/gpu/GrRenderTargetContext.h | |
parent | 550148ba572acc75e73d3c7d600ea7fa43db55f2 (diff) |
Try out refFoo pattern on GrRenderTargetContext
Change-Id: Ifae5618f30c2202b9083f479b58556709ff6126a
Reviewed-on: https://skia-review.googlesource.com/6990
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrRenderTargetContext.h')
-rw-r--r-- | include/gpu/GrRenderTargetContext.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrRenderTargetContext.h b/include/gpu/GrRenderTargetContext.h index b16e6c7db5..0f6662dd75 100644 --- a/include/gpu/GrRenderTargetContext.h +++ b/include/gpu/GrRenderTargetContext.h @@ -357,6 +357,7 @@ public: bool isGammaCorrect() const { return SkToBool(fColorSpace.get()); } const SkSurfaceProps& surfaceProps() const { return fSurfaceProps; } SkColorSpace* getColorSpace() const { return fColorSpace.get(); } + sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; } GrColorSpaceXform* getColorXformFromSRGB() const { return fColorXformFromSRGB.get(); } GrSurfaceOrigin origin() const { return fRenderTargetProxy->origin(); } |