From f6f7b67ac230b14a725fbdabe951c70ea5b4428f Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Thu, 15 Feb 2018 13:06:26 -0500 Subject: When creating emptyp MipMap proxies, don't instantiate them immediately. Attempt 3 original: https://skia-review.googlesource.com/106966 Bug: skia: Change-Id: I779985cef2d3c4f36a0129d8ecedd12e510bec7e Reviewed-on: https://skia-review.googlesource.com/107781 Reviewed-by: Robert Phillips Commit-Queue: Greg Daniel --- tests/GrMipMappedTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/GrMipMappedTest.cpp') diff --git a/tests/GrMipMappedTest.cpp b/tests/GrMipMappedTest.cpp index 0436bd4213..1462648a78 100644 --- a/tests/GrMipMappedTest.cpp +++ b/tests/GrMipMappedTest.cpp @@ -161,6 +161,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrBackendTextureImageMipMappedTest, reporter, if (GrSurfaceProxy::LazyState::kNot != genProxy->lazyInstantiationState()) { genProxy->priv().doLazyInstantiation(context->contextPriv().resourceProvider()); + } else if (!genProxy->priv().isInstantiated()) { + genProxy->instantiate(context->contextPriv().resourceProvider()); } REPORTER_ASSERT(reporter, genProxy->priv().isInstantiated()); -- cgit v1.2.3