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

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

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/SkArithmeticMode.cpp ('k') | src/effects/SkAvoidXfermode.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class GrArithmeticXPFactory : public GrXPFactory { 78 class GrArithmeticXPFactory : public GrXPFactory {
79 public: 79 public:
80 static GrXPFactory* Create(float k1, float k2, float k3, float k4, bool enfo rcePMColor) { 80 static GrXPFactory* Create(float k1, float k2, float k3, float k4, bool enfo rcePMColor) {
81 return new GrArithmeticXPFactory(k1, k2, k3, k4, enforcePMColor); 81 return new GrArithmeticXPFactory(k1, k2, k3, k4, enforcePMColor);
82 } 82 }
83 83
84 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, 84 void getInvariantBlendedColor(const GrProcOptInfo& colorPOI,
85 GrXPFactory::InvariantBlendedColor*) const ove rride; 85 GrXPFactory::InvariantBlendedColor*) const ove rride;
86 86
87 private: 87 private:
88 GrArithmeticXPFactory(float k1, float k2, float k3, float k4, bool enforcePM Color); 88 GrArithmeticXPFactory(float k1, float k2, float k3, float k4, bool enforcePM Color);
89 89
90 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 90 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
91 const GrPipelineOptimizations& optimi zations, 91 const GrPipelineOptimizations& optimi zations,
92 bool hasMixedSamples, 92 bool hasMixedSamples,
93 const DstTexture*) const override; 93 const DstTexture*) const override;
94 94
95 bool onWillReadDstColor(const GrCaps& caps, 95 bool onWillReadDstColor(const GrCaps& caps,
96 const GrPipelineOptimizations& optimizations, 96 const GrPipelineOptimizations& optimizations,
97 bool hasMixedSamples) const override { 97 bool hasMixedSamples) const override {
98 return true; 98 return true;
99 } 99 }
100 100
101 bool onIsEqual(const GrXPFactory& xpfBase) const override { 101 bool onIsEqual(const GrXPFactory& xpfBase) const override {
102 const GrArithmeticXPFactory& xpf = xpfBase.cast<GrArithmeticXPFactory>() ; 102 const GrArithmeticXPFactory& xpf = xpfBase.cast<GrArithmeticXPFactory>() ;
103 if (fK1 != xpf.fK1 || 103 if (fK1 != xpf.fK1 ||
104 fK2 != xpf.fK2 || 104 fK2 != xpf.fK2 ||
105 fK3 != xpf.fK3 || 105 fK3 != xpf.fK3 ||
106 fK4 != xpf.fK4 || 106 fK4 != xpf.fK4 ||
107 fEnforcePMColor != xpf.fEnforcePMColor) { 107 fEnforcePMColor != xpf.fEnforcePMColor) {
108 return false; 108 return false;
109 } 109 }
110 return true; 110 return true;
111 } 111 }
112 112
113 GR_DECLARE_XP_FACTORY_TEST; 113 GR_DECLARE_XP_FACTORY_TEST;
114 114
115 float fK1, fK2, fK3, fK4; 115 float fK1, fK2, fK3, fK4;
116 bool fEnforcePMColor; 116 bool fEnforcePMColor;
117 117
118 typedef GrXPFactory INHERITED; 118 typedef GrXPFactory INHERITED;
119 }; 119 };
120 120
121 #endif 121 #endif
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « src/effects/SkArithmeticMode.cpp ('k') | src/effects/SkAvoidXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698