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

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

Issue 1443763002: Increase the amount of debug information printed out by batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix printf Created 5 years, 1 month 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/GrCircleBlurFragmentProcessor.h ('k') | src/effects/SkLightingImageFilter.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 const GrFragmentProcessor* Create(float k1, float k2, float k3, float k4, 34 static const GrFragmentProcessor* Create(float k1, float k2, float k3, float k4,
35 bool enforcePMColor, const GrFragme ntProcessor* dst) { 35 bool enforcePMColor, const GrFragme ntProcessor* dst) {
36 return new GrArithmeticFP(k1, k2, k3, k4, enforcePMColor, dst); 36 return new GrArithmeticFP(k1, k2, k3, k4, enforcePMColor, dst);
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 SkString dumpInfo() const override {
44 SkString str;
45 str.appendf("K1: %.2f K2: %.2f K3: %.2f K4: %.2f", fK1, fK2, fK3, fK4);
46 return str;
47 }
48
43 float k1() const { return fK1; } 49 float k1() const { return fK1; }
44 float k2() const { return fK2; } 50 float k2() const { return fK2; }
45 float k3() const { return fK3; } 51 float k3() const { return fK3; }
46 float k4() const { return fK4; } 52 float k4() const { return fK4; }
47 bool enforcePMColor() const { return fEnforcePMColor; } 53 bool enforcePMColor() const { return fEnforcePMColor; }
48 54
49 private: 55 private:
50 GrGLFragmentProcessor* onCreateGLInstance() const override; 56 GrGLFragmentProcessor* onCreateGLInstance() const override;
51 57
52 void onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) c onst override; 58 void onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) c onst override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 GR_DECLARE_XP_FACTORY_TEST; 119 GR_DECLARE_XP_FACTORY_TEST;
114 120
115 float fK1, fK2, fK3, fK4; 121 float fK1, fK2, fK3, fK4;
116 bool fEnforcePMColor; 122 bool fEnforcePMColor;
117 123
118 typedef GrXPFactory INHERITED; 124 typedef GrXPFactory INHERITED;
119 }; 125 };
120 126
121 #endif 127 #endif
122 #endif 128 #endif
OLDNEW
« no previous file with comments | « src/effects/GrCircleBlurFragmentProcessor.h ('k') | src/effects/SkLightingImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698