aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GrMipMappedTest.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-01-17 10:52:04 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-17 16:27:17 +0000
commite728f676d6dfcaaa1b9727a85985b52eed7cf911 (patch)
tree082e217153eaf47f16d8c0b545c232333eb34b5c /tests/GrMipMappedTest.cpp
parent2e0fadb06c6aa7e74118694a30727f6e3ea45573 (diff)
Update to GrBackendTexutreImageGenerator to support lazy texture proxies
Bug: skia: Change-Id: I7cce869894e274250f49328550a0ae2d8e04de74 Reviewed-on: https://skia-review.googlesource.com/95022 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/GrMipMappedTest.cpp')
-rw-r--r--tests/GrMipMappedTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/GrMipMappedTest.cpp b/tests/GrMipMappedTest.cpp
index 04bcca7c4d..df1e8ee901 100644
--- a/tests/GrMipMappedTest.cpp
+++ b/tests/GrMipMappedTest.cpp
@@ -155,6 +155,10 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrBackendTextureImageMipMappedTest, reporter,
return;
}
+ if (GrSurfaceProxy::LazyState::kNot != genProxy->lazyInstantiationState()) {
+ genProxy->priv().doLazyInstantiation(context->contextPriv().resourceProvider());
+ }
+
REPORTER_ASSERT(reporter, genProxy->priv().isInstantiated());
GrTexture* genTexture = genProxy->priv().peekTexture();