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

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

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment 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
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"
11 #include "SkString.h" 11 #include "SkString.h"
12 12
13 #if SK_SUPPORT_GPU 13 #if SK_SUPPORT_GPU
14 #include "gl/GrGLEffect.h" 14 #include "gl/GrGLEffect.h"
15 #include "gl/GrGLShaderBuilder.h"
15 #include "GrContext.h" 16 #include "GrContext.h"
16 #include "GrTBackendEffectFactory.h" 17 #include "GrTBackendEffectFactory.h"
17 #endif 18 #endif
18 19
19 void SkLumaColorFilter::filterSpan(const SkPMColor src[], int count, 20 void SkLumaColorFilter::filterSpan(const SkPMColor src[], int count,
20 SkPMColor dst[]) const { 21 SkPMColor dst[]) const {
21 for (int i = 0; i < count; ++i) { 22 for (int i = 0; i < count; ++i) {
22 SkPMColor c = src[i]; 23 SkPMColor c = src[i];
23 24
24 /* 25 /*
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 private: 119 private:
119 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE { 120 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE {
120 return true; 121 return true;
121 } 122 }
122 }; 123 };
123 124
124 GrEffect* SkLumaColorFilter::asNewEffect(GrContext*) const { 125 GrEffect* SkLumaColorFilter::asNewEffect(GrContext*) const {
125 return LumaColorFilterEffect::Create(); 126 return LumaColorFilterEffect::Create();
126 } 127 }
127 #endif 128 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698