From bb581ce30f55360fd3a12e7f5aa1fe324b16d085 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Mon, 29 May 2017 15:05:15 -0400 Subject: Convert DstTexture to DstProxy (take 2) The last GrTexture-based TextureSampler::reset call must be removed before the TextureSamplers can become purely GrTextureProxy-backed Reland of: https://skia-review.googlesource.com/c/16908/ (Convert DstTexture to DstProxy) Split out of: https://skia-review.googlesource.com/c/10484/ (Omnibus: Push instantiation of GrTextures later (post TextureSampler)) Change-Id: I3a497b6a950fad899f23882c0a9552894ef640f8 Reviewed-on: https://skia-review.googlesource.com/17205 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- tests/ProcessorTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/ProcessorTest.cpp') diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index 399a307bd9..41bb183884 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -324,6 +324,11 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ProcessorOptimizationValidationTest, repor } proxies[1] = GrSurfaceProxy::MakeDeferred(context->resourceProvider(), desc, SkBudgeted::kYes, alphaData.get(), 256); + + if (!proxies[0] || !proxies[1]) { + return; + } + GrProcessorTestData testData(&random, context, rtc.get(), proxies); // Use a different array of premul colors for the output of the fragment processor that preceeds -- cgit v1.2.3