aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBackendSurface.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/GrBackendSurface.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/GrBackendSurface.cpp')
-rw-r--r--src/gpu/GrBackendSurface.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrBackendSurface.cpp b/src/gpu/GrBackendSurface.cpp
index 863f531b2e..6f48a758a8 100644
--- a/src/gpu/GrBackendSurface.cpp
+++ b/src/gpu/GrBackendSurface.cpp
@@ -75,6 +75,8 @@ GrBackendTexture::GrBackendTexture(int width,
, fVkInfo(vkInfo) {}
#endif
+#if GR_TEST_UTILS
+
GrBackendTexture::GrBackendTexture(int width,
int height,
GrPixelConfig config,
@@ -92,6 +94,7 @@ GrBackendTexture::GrBackendTexture(int width,
, fMipMapped(mipMapped)
, fBackend(kOpenGL_GrBackend)
, fGLInfo(glInfo) {}
+#endif
GrBackendTexture::GrBackendTexture(int width,
int height,
@@ -188,6 +191,8 @@ GrBackendRenderTarget::GrBackendRenderTarget(int width,
, fVkInfo(vkInfo) {}
#endif
+#if GR_TEST_UTILS
+
GrBackendRenderTarget::GrBackendRenderTarget(int width,
int height,
int sampleCnt,
@@ -201,6 +206,7 @@ GrBackendRenderTarget::GrBackendRenderTarget(int width,
, fConfig(config)
, fBackend(kOpenGL_GrBackend)
, fGLInfo(glInfo) {}
+#endif
GrBackendRenderTarget::GrBackendRenderTarget(int width,
int height,