aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bigrrectaaeffect.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-11-16 11:02:05 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-16 11:02:05 -0800
commit504ce5dc772e14be2f5697b00ac82fcf82127763 (patch)
tree08d896e660c8ac5487152bd84ffb98d26107a17c /gm/bigrrectaaeffect.cpp
parent3c2d32b8e27820a6e149d9ded67cbdf2411cc5c9 (diff)
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
Diffstat (limited to 'gm/bigrrectaaeffect.cpp')
-rw-r--r--gm/bigrrectaaeffect.cpp2
1 files changed, 1 insertions, 1 deletions
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;