Un-plumb dstColorSpace through GrTextureProducer
All unused.
Bug: skia:
Change-Id: I35b32874b0865ff7a33560f9a7b80df603eac6f4
Reviewed-on: https://skia-review.googlesource.com/c/163885
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrTextureMaker.cpp b/src/gpu/GrTextureMaker.cpp
index cb383d4..213a1a8 100644
--- a/src/gpu/GrTextureMaker.cpp
+++ b/src/gpu/GrTextureMaker.cpp
@@ -14,7 +14,6 @@
#include "GrProxyProvider.h"
sk_sp<GrTextureProxy> GrTextureMaker::onRefTextureProxyForParams(const GrSamplerState& params,
- SkColorSpace* dstColorSpace,
sk_sp<SkColorSpace>* texColorSpace,
bool willBeMipped,
SkScalar scaleAdjust[2]) {
@@ -26,10 +25,10 @@
CopyParams copyParams;
if (texColorSpace) {
- *texColorSpace = this->getColorSpace(dstColorSpace);
+ *texColorSpace = this->getColorSpace();
}
- sk_sp<GrTextureProxy> original(this->refOriginalTextureProxy(willBeMipped, dstColorSpace,
+ sk_sp<GrTextureProxy> original(this->refOriginalTextureProxy(willBeMipped,
AllowedTexGenType::kCheap));
bool needsCopyForMipsOnly = false;
if (original) {
@@ -49,8 +48,7 @@
!GrGpu::IsACopyNeededForRepeatWrapMode(fContext->contextPriv().caps(), nullptr,
this->width(), this->height(),
params.filter(), ©Params, scaleAdjust)) {
- return this->refOriginalTextureProxy(willBeMipped, dstColorSpace,
- AllowedTexGenType::kAny);
+ return this->refOriginalTextureProxy(willBeMipped, AllowedTexGenType::kAny);
}
}
@@ -74,8 +72,7 @@
source = cachedProxy;
} else {
// Since we will be copying this texture there is no reason to make it mipped
- source = this->refOriginalTextureProxy(false, dstColorSpace,
- AllowedTexGenType::kAny);
+ source = this->refOriginalTextureProxy(false, AllowedTexGenType::kAny);
}
if (!source) {
@@ -138,8 +135,8 @@
}
sk_sp<SkColorSpace> texColorSpace;
SkScalar scaleAdjust[2] = { 1.0f, 1.0f };
- sk_sp<GrTextureProxy> proxy(this->refTextureProxyForParams(samplerState, dstColorSpace,
- &texColorSpace, scaleAdjust));
+ sk_sp<GrTextureProxy> proxy(this->refTextureProxyForParams(samplerState, &texColorSpace,
+ scaleAdjust));
if (!proxy) {
return nullptr;
}