diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-09 16:00:33 +0000 |
---|---|---|
committer | Brian Salomon <bsalomon@google.com> | 2017-01-09 16:08:13 +0000 |
commit | 003312a211e65f35e402d6fe80a32e23d4c94ac4 (patch) | |
tree | 61635d3df8e7bf873c0ea08b211da03521b8a477 /gm/yuvtorgbeffect.cpp | |
parent | a8f80de2bc17672b4b6f26d3cf6b38123ac850c9 (diff) |
Revert "Removing ref counting from GrXPFactory."
This reverts commit a8f80de2bc17672b4b6f26d3cf6b38123ac850c9.
Reason for revert: nanobench failing on windows bots, possibly others
Change-Id: Iacb8c650064a28654c165665be057377ffb02ba5
Reviewed-on: https://skia-review.googlesource.com/6802
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm/yuvtorgbeffect.cpp')
-rw-r--r-- | gm/yuvtorgbeffect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp index 103c2e41ff..ab04a9d87b 100644 --- a/gm/yuvtorgbeffect.cpp +++ b/gm/yuvtorgbeffect.cpp @@ -111,7 +111,7 @@ protected: for (int i = 0; i < 6; ++i) { GrPaint grPaint; - grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); + grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkBlendMode::kSrc)); sk_sp<GrFragmentProcessor> fp( GrYUVEffect::MakeYUVToRGB(texture[indices[i][0]].get(), texture[indices[i][1]].get(), @@ -228,7 +228,7 @@ protected: SkScalar x = kDrawPad + kTestPad; GrPaint grPaint; - grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); + grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkBlendMode::kSrc)); sk_sp<GrFragmentProcessor> fp( GrYUVEffect::MakeYUVToRGB(texture[0].get(), texture[1].get(), texture[2].get(), sizes, static_cast<SkYUVColorSpace>(space), true)); |