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/gpu/effects/GrRRectEffect.cpp

Issue 1661143003: Next round of GrGLSLFragmentProcessor-derived class cleanup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix overlength line Created 4 years, 10 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 2014 Google Inc. 2 * Copyright 2014 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 "GrRRectEffect.h" 8 #include "GrRRectEffect.h"
9 9
10 #include "GrConvexPolyEffect.h" 10 #include "GrConvexPolyEffect.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 virtual void emitCode(EmitArgs&) override; 136 virtual void emitCode(EmitArgs&) override;
137 137
138 static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessor KeyBuilder*); 138 static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessor KeyBuilder*);
139 139
140 protected: 140 protected:
141 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override ; 141 void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override ;
142 142
143 private: 143 private:
144 GrGLSLProgramDataManager::UniformHandle fInnerRectUniform; 144 GrGLSLProgramDataManager::UniformHandle fInnerRectUniform;
145 GrGLSLProgramDataManager::UniformHandle fRadiusPlusHalfUniform; 145 GrGLSLProgramDataManager::UniformHandle fRadiusPlusHalfUniform;
146 SkRRect fPrevRRect; 146 SkRRect fPrevRRect;
147 typedef GrGLSLFragmentProcessor INHERITED; 147 typedef GrGLSLFragmentProcessor INHERITED;
148 }; 148 };
149 149
150 void GLCircularRRectEffect::emitCode(EmitArgs& args) { 150 void GLCircularRRectEffect::emitCode(EmitArgs& args) {
151 const CircularRRectEffect& crre = args.fFp.cast<CircularRRectEffect>(); 151 const CircularRRectEffect& crre = args.fFp.cast<CircularRRectEffect>();
152 GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; 152 GrGLSLUniformHandler* uniformHandler = args.fUniformHandler;
153 const char *rectName; 153 const char *rectName;
154 const char *radiusPlusHalfName; 154 const char *radiusPlusHalfName;
155 // The inner rect is the rrect bounds inset by the radius. Its left, top, ri ght, and bottom 155 // The inner rect is the rrect bounds inset by the radius. Its left, top, ri ght, and bottom
156 // edges correspond to components x, y, z, and w, respectively. When a side of the rrect has 156 // edges correspond to components x, y, z, and w, respectively. When a side of the rrect has
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 if (rrect.isNinePatch()) { 769 if (rrect.isNinePatch()) {
770 return EllipticalRRectEffect::Create(edgeType, rrect); 770 return EllipticalRRectEffect::Create(edgeType, rrect);
771 } 771 }
772 return nullptr; 772 return nullptr;
773 } 773 }
774 } 774 }
775 } 775 }
776 776
777 return nullptr; 777 return nullptr;
778 } 778 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrMatrixConvolutionEffect.cpp ('k') | src/gpu/effects/GrSimpleTextureEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698