diff options
author | 2015-11-23 13:20:41 -0800 | |
---|---|---|
committer | 2015-11-23 13:20:42 -0800 | |
commit | c4b72720e75313079212e69e46a5ef7c474b2305 (patch) | |
tree | b0bf74db86503bd22684bb3107613db4e6625244 /gm/texturedomaineffect.cpp | |
parent | 60ce86d4718dab83f33488ec41710ad6763fc7f8 (diff) |
Don't create a GXPFactory when blend is SrcOver
BUG=skia:
Review URL: https://codereview.chromium.org/1471053002
Diffstat (limited to 'gm/texturedomaineffect.cpp')
-rw-r--r-- | gm/texturedomaineffect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index a2dc4b01b8..3eaba90806 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -117,6 +117,8 @@ protected: for (int m = 0; m < GrTextureDomain::kModeCount; ++m) { GrTextureDomain::Mode mode = (GrTextureDomain::Mode) m; GrPipelineBuilder pipelineBuilder; + pipelineBuilder.setXPFactory( + GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref(); SkAutoTUnref<const GrFragmentProcessor> fp( GrTextureDomainEffect::Create(texture, textureMatrices[tm], GrTextureDomain::MakeTexelDomain(texture, |