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

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

Issue 1266773003: Implement support for dual source blending in ES (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/gl/GrGLInterface.cpp ('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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 * An internal call for GrGLProgramBuilder to use to add varyings to the ver tex shader 124 * An internal call for GrGLProgramBuilder to use to add varyings to the ver tex shader
125 */ 125 */
126 void addVarying(GrGLVarying*, GrSLPrecision); 126 void addVarying(GrGLVarying*, GrSLPrecision);
127 127
128 /** 128 /**
129 * Features that should only be enabled by GrGLFragmentShaderBuilder itself. 129 * Features that should only be enabled by GrGLFragmentShaderBuilder itself.
130 */ 130 */
131 enum GLSLPrivateFeature { 131 enum GLSLPrivateFeature {
132 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1, 132 kFragCoordConventions_GLSLPrivateFeature = kLastGLSLFeature + 1,
133 kBlendEquationAdvanced_GLSLPrivateFeature, 133 kBlendEquationAdvanced_GLSLPrivateFeature,
134 kLastGLSLPrivateFeature = kBlendEquationAdvanced_GLSLPrivateFeature 134 kBlendFuncExtended_GLSLPrivateFeature,
135 kLastGLSLPrivateFeature = kBlendFuncExtended_GLSLPrivateFeature
135 }; 136 };
136 137
137 // Interpretation of DstReadKey when generating code 138 // Interpretation of DstReadKey when generating code
138 enum { 139 enum {
139 kNoDstRead_DstReadKey = 0, 140 kNoDstRead_DstReadKey = 0,
140 kYesDstRead_DstReadKeyBit = 0x1, // Set if we do a dst-copy-read. 141 kYesDstRead_DstReadKeyBit = 0x1, // Set if we do a dst-copy-read.
141 kUseAlphaConfig_DstReadKeyBit = 0x2, // Set if dst-copy config is alph a only. 142 kUseAlphaConfig_DstReadKeyBit = 0x2, // Set if dst-copy config is alph a only.
142 kTopLeftOrigin_DstReadKeyBit = 0x4, // Set if dst-copy origin is top- left. 143 kTopLeftOrigin_DstReadKeyBit = 0x4, // Set if dst-copy origin is top- left.
143 }; 144 };
144 145
(...skipping 16 matching lines...) Expand all
161 // the program creator 162 // the program creator
162 bool fHasReadDstColor; 163 bool fHasReadDstColor;
163 bool fHasReadFragmentPosition; 164 bool fHasReadFragmentPosition;
164 165
165 friend class GrGLProgramBuilder; 166 friend class GrGLProgramBuilder;
166 167
167 typedef GrGLXPFragmentBuilder INHERITED; 168 typedef GrGLXPFragmentBuilder INHERITED;
168 }; 169 };
169 170
170 #endif 171 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLInterface.cpp ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698