From eee4d6e4e8cc5c4c79f065abcc3ce609f71238f9 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Mon, 5 Jun 2017 09:26:07 -0400 Subject: Make instantiate return a Boolean From an off-line conversation: The longer term idea will be to create a helper class isolates the ability to instantiate proxies until flush time. The peek* methods could then be moved to GrSurfaceProxy. Change-Id: I8e8c02c098475b77d515791c0d6b81f7e4a327dd Reviewed-on: https://skia-review.googlesource.com/18076 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- tests/ImageFilterCacheTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ImageFilterCacheTest.cpp') diff --git a/tests/ImageFilterCacheTest.cpp b/tests/ImageFilterCacheTest.cpp index a8b8f87981..d0c6c5bcb5 100644 --- a/tests/ImageFilterCacheTest.cpp +++ b/tests/ImageFilterCacheTest.cpp @@ -206,10 +206,10 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageFilterCache_ImageBackedGPU, reporter, ct return; } - GrTexture* tex = srcProxy->instantiateTexture(context->resourceProvider()); - if (!tex) { + if (!srcProxy->instantiate(context->resourceProvider())) { return; } + GrTexture* tex = srcProxy->priv().peekTexture(); GrBackendTexture backendTex = GrTest::CreateBackendTexture(context->contextPriv().getBackend(), kFullSize, -- cgit v1.2.3