From 504ce5dc772e14be2f5697b00ac82fcf82127763 Mon Sep 17 00:00:00 2001 From: robertphillips Date: Mon, 16 Nov 2015 11:02:05 -0800 Subject: Optionally pass rendertarget to getTestTarget This shouldn't really make any difference but allocating and holding on to a GrRenderTarget for each test target generates image differences for Mali GPUs. This CL allows an existing render target to be used for the test target. TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1447113002 --- gm/bigrrectaaeffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/bigrrectaaeffect.cpp') diff --git a/gm/bigrrectaaeffect.cpp b/gm/bigrrectaaeffect.cpp index bc0b56a72c..472910b5df 100644 --- a/gm/bigrrectaaeffect.cpp +++ b/gm/bigrrectaaeffect.cpp @@ -65,7 +65,7 @@ protected: canvas->save(); canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); GrTestTarget tt; - context->getTestTarget(&tt); + context->getTestTarget(&tt, rt); if (nullptr == tt.target()) { SkDEBUGFAIL("Couldn't get Gr test target."); return; -- cgit v1.2.3