From e728f676d6dfcaaa1b9727a85985b52eed7cf911 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Wed, 17 Jan 2018 10:52:04 -0500 Subject: 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 Reviewed-by: Brian Salomon Reviewed-by: Brian Osman Reviewed-by: Robert Phillips --- tests/GrMipMappedTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/GrMipMappedTest.cpp') 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(); -- cgit v1.2.3