diff options
author | 2017-03-14 10:26:58 -0400 | |
---|---|---|
committer | 2017-03-14 15:05:45 +0000 | |
commit | e411a077ec2cc018351d92e668def5da6905e4ec (patch) | |
tree | 994db222f4ae031df1e93776a5f5c63f5851014f /include | |
parent | f61d9955f9e2915a7b0879f9c76f21311eb68df9 (diff) |
Add const to GrColorSpaceXform member arguments
BUG=skia:
Change-Id: I643c486066a0cd48e9c985ab5f3ee453c2a533c5
Reviewed-on: https://skia-review.googlesource.com/9644
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrColorSpaceXform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gpu/GrColorSpaceXform.h b/include/gpu/GrColorSpaceXform.h index 7c88c62850..68cd3b0563 100644 --- a/include/gpu/GrColorSpaceXform.h +++ b/include/gpu/GrColorSpaceXform.h @@ -21,7 +21,7 @@ class GrColorSpaceXform : public SkRefCnt { public: GrColorSpaceXform(const SkMatrix44& srcToDst); - static sk_sp<GrColorSpaceXform> Make(SkColorSpace* src, SkColorSpace* dst); + static sk_sp<GrColorSpaceXform> Make(const SkColorSpace* src, const SkColorSpace* dst); const SkMatrix44& srcToDst() const { return fSrcToDst; } @@ -29,7 +29,7 @@ public: * GrGLSLFragmentProcessor::GenKey() must call this and include the returned value in its * computed key. */ - static uint32_t XformKey(GrColorSpaceXform* xform) { + static uint32_t XformKey(const GrColorSpaceXform* xform) { // Code generation changes if there is an xform, but it otherwise constant return SkToBool(xform) ? 1 : 0; } |