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

Side by Side Diff: src/gpu/gl/builders/GrGLShaderBuilder.h

Issue 519473003: Use highp for gpu bezier effects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gm ignore Created 6 years, 3 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/effects/GrBezierEffect.cpp ('k') | src/gpu/gl/builders/GrGLShaderBuilder.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 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 #ifndef GrGLShaderBuilder_DEFINED 8 #ifndef GrGLShaderBuilder_DEFINED
9 #define GrGLShaderBuilder_DEFINED 9 #define GrGLShaderBuilder_DEFINED
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 void codeAppend(const char* str) { fCode.append(str); } 88 void codeAppend(const char* str) { fCode.append(str); }
89 89
90 void codePrependf(const char format[], ...) SK_PRINTF_LIKE(2, 3) { 90 void codePrependf(const char format[], ...) SK_PRINTF_LIKE(2, 3) {
91 va_list args; 91 va_list args;
92 va_start(args, format); 92 va_start(args, format);
93 fCode.prependVAList(format, args); 93 fCode.prependVAList(format, args);
94 va_end(args); 94 va_end(args);
95 } 95 }
96 96
97 /**
98 * Appends a variable declaration to one of the shaders
99 */
100 void declAppend(const GrGLShaderVar& var);
101
97 /** Emits a helper function outside of main() in the fragment shader. */ 102 /** Emits a helper function outside of main() in the fragment shader. */
98 void emitFunction(GrSLType returnType, 103 void emitFunction(GrSLType returnType,
99 const char* name, 104 const char* name,
100 int argCnt, 105 int argCnt,
101 const GrGLShaderVar* args, 106 const GrGLShaderVar* args,
102 const char* body, 107 const char* body,
103 SkString* outName); 108 SkString* outName);
104 109
105 /* 110 /*
106 * Get parent builder for adding uniforms 111 * Get parent builder for adding uniforms
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 public: 166 public:
162 GrGLFullShaderBuilder(GrGLFullProgramBuilder* program); 167 GrGLFullShaderBuilder(GrGLFullProgramBuilder* program);
163 168
164 GrGLFullProgramBuilder* fullProgramBuilder() { return fFullProgramBuilder; } 169 GrGLFullProgramBuilder* fullProgramBuilder() { return fFullProgramBuilder; }
165 protected: 170 protected:
166 GrGLFullProgramBuilder* fFullProgramBuilder; 171 GrGLFullProgramBuilder* fFullProgramBuilder;
167 private: 172 private:
168 typedef GrGLShaderBuilder INHERITED; 173 typedef GrGLShaderBuilder INHERITED;
169 }; 174 };
170 #endif 175 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBezierEffect.cpp ('k') | src/gpu/gl/builders/GrGLShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698