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

Side by Side Diff: src/effects/SkLumaColorFilter.cpp

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/effects/SkColorFilters.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkLumaColorFilter.h" 8 #include "SkLumaColorFilter.h"
9 9
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 private: 114 private:
115 typedef GrGLEffect INHERITED; 115 typedef GrGLEffect INHERITED;
116 }; 116 };
117 117
118 private: 118 private:
119 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE { 119 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE {
120 return true; 120 return true;
121 } 121 }
122 }; 122 };
123 123
124 GrEffectRef* SkLumaColorFilter::asNewEffect(GrContext*) const { 124 GrEffect* SkLumaColorFilter::asNewEffect(GrContext*) const {
125 return LumaColorFilterEffect::Create(); 125 return LumaColorFilterEffect::Create();
126 } 126 }
127 #endif 127 #endif
OLDNEW
« no previous file with comments | « src/effects/SkColorFilters.cpp ('k') | src/effects/SkPerlinNoiseShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698