aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/constcolorprocessor.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/constcolorprocessor.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/constcolorprocessor.cpp')
-rw-r--r--gm/constcolorprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/constcolorprocessor.cpp b/gm/constcolorprocessor.cpp
index 539119e040..3b2605e7a3 100644
--- a/gm/constcolorprocessor.cpp
+++ b/gm/constcolorprocessor.cpp
@@ -91,7 +91,7 @@ protected:
SkRect renderRect = SkRect::MakeXYWH(0, 0, kRectSize, kRectSize);
GrTestTarget tt;
- context->getTestTarget(&tt);
+ context->getTestTarget(&tt, rt);
if (nullptr == tt.target()) {
SkDEBUGFAIL("Couldn't get Gr test target.");
return;