diff options
author | 2015-11-16 11:02:05 -0800 | |
---|---|---|
committer | 2015-11-16 11:02:05 -0800 | |
commit | 504ce5dc772e14be2f5697b00ac82fcf82127763 (patch) | |
tree | 08d896e660c8ac5487152bd84ffb98d26107a17c /gm/texturedomaineffect.cpp | |
parent | 3c2d32b8e27820a6e149d9ded67cbdf2411cc5c9 (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/texturedomaineffect.cpp')
-rw-r--r-- | gm/texturedomaineffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index cf772f5f1b..a2dc4b01b8 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -80,7 +80,7 @@ protected: } GrTestTarget tt; - context->getTestTarget(&tt); + context->getTestTarget(&tt, rt); if (nullptr == tt.target()) { SkDEBUGFAIL("Couldn't get Gr test target."); return; |