Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: src/effects/SkLumaColorFilter.cpp

Issue 1414733007: Stop creating static GrProcessor instances (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/effects/GrDitherEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkLumaColorFilter.cpp
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp
index 39d2bbf2caf37a61e6325141f25686f52aede2d0..03db0bb78bef50dc78affad1a7046ac69f8247f8 100644
--- a/src/effects/SkLumaColorFilter.cpp
+++ b/src/effects/SkLumaColorFilter.cpp
@@ -55,8 +55,7 @@ void SkLumaColorFilter::toString(SkString* str) const {
class LumaColorFilterEffect : public GrFragmentProcessor {
public:
static const GrFragmentProcessor* Create() {
- static LumaColorFilterEffect gLumaEffect;
- return SkRef(&gLumaEffect);
+ return new LumaColorFilterEffect;
}
const char* name() const override { return "Luminance-to-Alpha"; }
« no previous file with comments | « no previous file | src/gpu/effects/GrDitherEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698