aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureRenderTargetProxy.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-02-12 12:07:39 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-12 18:51:28 +0000
commitd2d8e92e5e6014b746e9928a8ffc1ba4b95cb016 (patch)
treef93946c1835903aebed7c8c019774e2c28909ac3 /src/gpu/GrTextureRenderTargetProxy.cpp
parent82040a9a056cd830027e255c7da845dcb5c026ed (diff)
Remove tracking of SkDestinationSurfaceColorMode on GrTextureProxy for mips
When we create a new surface from a proxy we were always using legacy and when we wrapped an existing surface we never actaully had to use the value we pulled off of it since the proxy was already instantiatied. Bug: skia: Change-Id: Ifcb5f3ac2f1dcf41b01a98c554d682ae57028d5a Reviewed-on: https://skia-review.googlesource.com/106207 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrTextureRenderTargetProxy.cpp')
-rw-r--r--src/gpu/GrTextureRenderTargetProxy.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/GrTextureRenderTargetProxy.cpp b/src/gpu/GrTextureRenderTargetProxy.cpp
index 1160756728..2d5dbeee9f 100644
--- a/src/gpu/GrTextureRenderTargetProxy.cpp
+++ b/src/gpu/GrTextureRenderTargetProxy.cpp
@@ -77,8 +77,7 @@ bool GrTextureRenderTargetProxy::instantiate(GrResourceProvider* resourceProvide
const GrUniqueKey& key = this->getUniqueKey();
if (!this->instantiateImpl(resourceProvider, this->numStencilSamples(), this->needsStencil(),
- kFlags, this->mipMapped(), this->mipColorMode(),
- key.isValid() ? &key : nullptr)) {
+ kFlags, this->mipMapped(), key.isValid() ? &key : nullptr)) {
return false;
}
if (key.isValid()) {
@@ -97,7 +96,7 @@ sk_sp<GrSurface> GrTextureRenderTargetProxy::createSurface(
sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, this->numStencilSamples(),
this->needsStencil(), kFlags,
- this->mipMapped(), this->mipColorMode());
+ this->mipMapped());
if (!surface) {
return nullptr;
}