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

Side by Side Diff: src/effects/SkArithmeticMode_gpu.h

Issue 1109863004: Use GLSLCaps for creating processor keys and GLSL-specific programs (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 8 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/SkAlphaThresholdFilter.cpp ('k') | src/effects/SkArithmeticMode_gpu.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 2015 Google Inc. 2 * Copyright 2015 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 #ifndef SkArithmeticMode_gpu_DEFINED 8 #ifndef SkArithmeticMode_gpu_DEFINED
9 #define SkArithmeticMode_gpu_DEFINED 9 #define SkArithmeticMode_gpu_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 static GrFragmentProcessor* Create(float k1, float k2, float k3, float k4, b ool enforcePMColor, 34 static GrFragmentProcessor* Create(float k1, float k2, float k3, float k4, b ool enforcePMColor,
35 GrTexture* background) { 35 GrTexture* background) {
36 return SkNEW_ARGS(GrArithmeticFP, (k1, k2, k3, k4, enforcePMColor, backg round)); 36 return SkNEW_ARGS(GrArithmeticFP, (k1, k2, k3, k4, enforcePMColor, backg round));
37 } 37 }
38 38
39 ~GrArithmeticFP() override {}; 39 ~GrArithmeticFP() override {};
40 40
41 const char* name() const override { return "Arithmetic"; } 41 const char* name() const override { return "Arithmetic"; }
42 42
43 void getGLProcessorKey(const GrGLCaps& caps, GrProcessorKeyBuilder* b) const override; 43 void getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) con st override;
44 44
45 GrGLFragmentProcessor* createGLInstance() const override; 45 GrGLFragmentProcessor* createGLInstance() const override;
46 46
47 float k1() const { return fK1; } 47 float k1() const { return fK1; }
48 float k2() const { return fK2; } 48 float k2() const { return fK2; }
49 float k3() const { return fK3; } 49 float k3() const { return fK3; }
50 float k4() const { return fK4; } 50 float k4() const { return fK4; }
51 bool enforcePMColor() const { return fEnforcePMColor; } 51 bool enforcePMColor() const { return fEnforcePMColor; }
52 52
53 private: 53 private:
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 GR_DECLARE_XP_FACTORY_TEST; 117 GR_DECLARE_XP_FACTORY_TEST;
118 118
119 float fK1, fK2, fK3, fK4; 119 float fK1, fK2, fK3, fK4;
120 bool fEnforcePMColor; 120 bool fEnforcePMColor;
121 121
122 typedef GrXPFactory INHERITED; 122 typedef GrXPFactory INHERITED;
123 }; 123 };
124 124
125 #endif 125 #endif
126 #endif 126 #endif
OLDNEW
« no previous file with comments | « src/effects/SkAlphaThresholdFilter.cpp ('k') | src/effects/SkArithmeticMode_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698