diff options
author | joshualitt <joshualitt@chromium.org> | 2015-07-09 10:24:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-09 10:24:36 -0700 |
commit | 5f10b5c1b5744106312e24835d235b72fdba5802 (patch) | |
tree | 84b17f420f40ff9793f7d24285fa81412102bae7 /gm | |
parent | cc29d26f5742449eb2a2bafa7bbb6ec5ee701aef (diff) |
More threading of GrProcessorDataManager
TBR=bsalomon@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1230813003
Diffstat (limited to 'gm')
-rw-r--r-- | gm/texturedomaineffect.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index 6104d46f8a..471360428d 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -115,8 +115,10 @@ protected: SkScalar x = kDrawPad + kTestPad; for (int m = 0; m < GrTextureDomain::kModeCount; ++m) { GrTextureDomain::Mode mode = (GrTextureDomain::Mode) m; + GrPipelineBuilder pipelineBuilder; SkAutoTUnref<GrFragmentProcessor> fp( - GrTextureDomainEffect::Create(texture, textureMatrices[tm], + GrTextureDomainEffect::Create(pipelineBuilder.getProcessorDataManager(), + texture, textureMatrices[tm], GrTextureDomain::MakeTexelDomain(texture, texelDomains[d]), mode, GrTextureParams::kNone_FilterMode)); @@ -125,7 +127,6 @@ protected: continue; } const SkMatrix viewMatrix = SkMatrix::MakeTrans(x, y); - GrPipelineBuilder pipelineBuilder; pipelineBuilder.setRenderTarget(rt); pipelineBuilder.addColorProcessor(fp); |