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

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

Issue 777443003: Move shader precision out of GrShaderVar (Closed) Base URL: https://skia.googlesource.com/skia.git@prec
Patch Set: rebase Created 6 years 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/gl/GrGLShaderVar.h ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.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 GrGLFragmentShaderBuilder_DEFINED 8 #ifndef GrGLFragmentShaderBuilder_DEFINED
9 #define GrGLFragmentShaderBuilder_DEFINED 9 #define GrGLFragmentShaderBuilder_DEFINED
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool hasReadDstColor() const { return fHasReadDstColor; } 110 bool hasReadDstColor() const { return fHasReadDstColor; }
111 bool hasReadFragmentPosition() const { return fHasReadFragmentPosition; } 111 bool hasReadFragmentPosition() const { return fHasReadFragmentPosition; }
112 void reset() { 112 void reset() {
113 fHasReadDstColor = false; 113 fHasReadDstColor = false;
114 fHasReadFragmentPosition = false; 114 fHasReadFragmentPosition = false;
115 } 115 }
116 116
117 /* 117 /*
118 * An internal call for GrGLProgramBuilder to use to add varyings to the ver tex shader 118 * An internal call for GrGLProgramBuilder to use to add varyings to the ver tex shader
119 */ 119 */
120 void addVarying(GrGLVarying*, GrGLShaderVar::Precision); 120 void addVarying(GrGLVarying*, GrSLPrecision);
121 121
122 /** 122 /**
123 * Features that should only be enabled by GrGLFragmentShaderBuilder itself. 123 * Features that should only be enabled by GrGLFragmentShaderBuilder itself.
124 */ 124 */
125 enum GLSLPrivateFeature { 125 enum GLSLPrivateFeature {
126 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, 126 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1,
127 kLastGLSLPrivateFeature = kFragCoordConventions_GLSLPrivateFeature 127 kLastGLSLPrivateFeature = kFragCoordConventions_GLSLPrivateFeature
128 }; 128 };
129 129
130 // Interpretation of DstReadKey when generating code 130 // Interpretation of DstReadKey when generating code
(...skipping 24 matching lines...) Expand all
155 bool fHasReadDstColor; 155 bool fHasReadDstColor;
156 bool fHasReadFragmentPosition; 156 bool fHasReadFragmentPosition;
157 157
158 friend class GrGLNvprProgramBuilder; 158 friend class GrGLNvprProgramBuilder;
159 friend class GrGLProgramBuilder; 159 friend class GrGLProgramBuilder;
160 160
161 typedef GrGLFPFragmentBuilder INHERITED; 161 typedef GrGLFPFragmentBuilder INHERITED;
162 }; 162 };
163 163
164 #endif 164 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLShaderVar.h ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698