aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLTexture.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-03-23 18:23:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-23 23:17:01 +0000
commit34df0d385bbe8cb97e0596e4e004caa617a72053 (patch)
tree8fa3a49d6b25a2f7a1122edcb17cbacb63e133e5 /src/gpu/gl/GrGLTexture.cpp
parent22f6897b3f5a43a0cabce5fc09d24f487f02724e (diff)
Hide GrBackendTexture/RenderTarget constructors that take a GrPixelConfig
Make GrGLTexture use the version that takes GrMipMapped. Bug: skia:6718 Change-Id: Id3e801bcb5e781938e610bdea75bd92498117935 Reviewed-on: https://skia-review.googlesource.com/116221 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLTexture.cpp')
-rw-r--r--src/gpu/gl/GrGLTexture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp
index 8fe992794f..61bce35061 100644
--- a/src/gpu/gl/GrGLTexture.cpp
+++ b/src/gpu/gl/GrGLTexture.cpp
@@ -113,7 +113,8 @@ sk_sp<GrGLTexture> GrGLTexture::MakeWrapped(GrGLGpu* gpu, const GrSurfaceDesc& d
bool GrGLTexture::onStealBackendTexture(GrBackendTexture* backendTexture,
SkImage::BackendTextureReleaseProc* releaseProc) {
- *backendTexture = GrBackendTexture(width(), height(), config(), fInfo);
+ *backendTexture = GrBackendTexture(this->width(), this->height(),
+ this->texturePriv().mipMapped(), fInfo);
// Set the release proc to a no-op function. GL doesn't require any special cleanup.
*releaseProc = [](GrBackendTexture){};