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

Side by Side Diff: src/gpu/glsl/GrGLSLProgramBuilder.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/gpu/glsl/GrGLSLPLSPathRendering.h ('k') | src/gpu/glsl/GrGLSLProgramBuilder.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 GrGLSLProgramBuilder_DEFINED 8 #ifndef GrGLSLProgramBuilder_DEFINED
9 #define GrGLSLProgramBuilder_DEFINED 9 #define GrGLSLProgramBuilder_DEFINED
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 UniformHandle fRTAdjustmentUni; 46 UniformHandle fRTAdjustmentUni;
47 47
48 // We use the render target height to provide a y-down frag coord when s pecifying 48 // We use the render target height to provide a y-down frag coord when s pecifying
49 // origin_upper_left is not supported. 49 // origin_upper_left is not supported.
50 UniformHandle fRTHeightUni; 50 UniformHandle fRTHeightUni;
51 }; 51 };
52 52
53 // Used to add a uniform in the vertex shader for transforming into normaliz ed device space. 53 // Used to add a uniform in the vertex shader for transforming into normaliz ed device space.
54 void addRTAdjustmentUniform(GrSLPrecision precision, const char* name, const char** outName); 54 void addRTAdjustmentUniform(GrSLPrecision precision, const char* name, const char** outName);
55 const char* rtAdjustment() const { return "rtAdjustment"; } 55 const char* rtAdjustment() const { return "rtAdjustment"; }
56 56
57 // Used to add a uniform for the RenderTarget height (used for frag position ) without mangling 57 // Used to add a uniform for the RenderTarget height (used for frag position ) without mangling
58 // the name of the uniform inside of a stage. 58 // the name of the uniform inside of a stage.
59 void addRTHeightUniform(const char* name, const char** outName); 59 void addRTHeightUniform(const char* name, const char** outName);
60 60
61 // Generates a name for a variable. The generated string will be name prefix ed by the prefix 61 // Generates a name for a variable. The generated string will be name prefix ed by the prefix
62 // char (unless the prefix is '\0'). It also will mangle the name to be stag e-specific unless 62 // char (unless the prefix is '\0'). It also will mangle the name to be stag e-specific unless
63 // explicitly asked not to. 63 // explicitly asked not to.
64 void nameVariable(SkString* out, char prefix, const char* name, bool mangle = true); 64 void nameVariable(SkString* out, char prefix, const char* name, bool mangle = true);
65 65
66 virtual GrGLSLUniformHandler* uniformHandler() = 0; 66 virtual GrGLSLUniformHandler* uniformHandler() = 0;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 #endif 158 #endif
159 159
160 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; 160 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms;
161 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; 161 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords;
162 int fNumVertexSamplers; 162 int fNumVertexSamplers;
163 int fNumGeometrySamplers; 163 int fNumGeometrySamplers;
164 int fNumFragmentSamplers; 164 int fNumFragmentSamplers;
165 }; 165 };
166 166
167 #endif 167 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLPLSPathRendering.h ('k') | src/gpu/glsl/GrGLSLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698