Remove texColorSpace output param from various producer APIs
Just expose colorSpace on the GrTextureProducer, and if a client needs
it, they can get it from there.
Bug: skia:
Change-Id: I5134b1c9b2780274f3d6571d9fe8cd2a6b6ce7e9
Reviewed-on: https://skia-review.googlesource.com/c/163888
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrImageTextureMaker.cpp b/src/gpu/GrImageTextureMaker.cpp
index 4764167..67d476a 100644
--- a/src/gpu/GrImageTextureMaker.cpp
+++ b/src/gpu/GrImageTextureMaker.cpp
@@ -36,6 +36,6 @@
SkAlphaType GrImageTextureMaker::alphaType() const {
return fImage->alphaType();
}
-sk_sp<SkColorSpace> GrImageTextureMaker::getColorSpace() {
- return fImage->refColorSpace();
+SkColorSpace* GrImageTextureMaker::colorSpace() const {
+ return fImage->colorSpace();
}