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

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

Issue 1584473002: Swizzle shader output and blend when using GL_RED to implement kAlpha_8_GrPixelConfig (Closed) Base URL: https://skia.googlesource.com/skia.git@hideformats
Patch Set: Address comments Created 4 years, 11 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/GrGLProgramDesc.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.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 GrGLProgramBuilder_DEFINED 8 #ifndef GrGLProgramBuilder_DEFINED
9 #define GrGLProgramBuilder_DEFINED 9 #define GrGLProgramBuilder_DEFINED
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 int index, 85 int index,
86 const char* outColor, 86 const char* outColor,
87 const char* inColor); 87 const char* inColor);
88 void emitAndInstallProc(const GrPrimitiveProcessor&, 88 void emitAndInstallProc(const GrPrimitiveProcessor&,
89 const char* outColor, 89 const char* outColor,
90 const char* outCoverage); 90 const char* outCoverage);
91 void emitAndInstallXferProc(const GrXferProcessor&, 91 void emitAndInstallXferProc(const GrXferProcessor&,
92 const GrGLSLExpr4& colorIn, 92 const GrGLSLExpr4& colorIn,
93 const GrGLSLExpr4& coverageIn, 93 const GrGLSLExpr4& coverageIn,
94 bool ignoresCoverage); 94 bool ignoresCoverage);
95 void emitFSOutputSwizzle(bool hasSecondaryOutput);
95 96
96 void verify(const GrPrimitiveProcessor&); 97 void verify(const GrPrimitiveProcessor&);
97 void verify(const GrXferProcessor&); 98 void verify(const GrXferProcessor&);
98 void verify(const GrFragmentProcessor&); 99 void verify(const GrFragmentProcessor&);
99 template <class Proc> 100 template <class Proc>
100 void emitSamplers(const GrProcessor&, 101 void emitSamplers(const GrProcessor&,
101 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, 102 GrGLSLTextureSampler::TextureSamplerArray* outSamplers,
102 GrGLInstalledProc<Proc>*); 103 GrGLInstalledProc<Proc>*);
103 104
104 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader, 105 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; 151 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords;
151 typedef GrGLSLUniformHandler::UniformHandle UniformHandle; 152 typedef GrGLSLUniformHandler::UniformHandle UniformHandle;
152 SkTArray<UniformHandle> fSamplerUniforms; 153 SkTArray<UniformHandle> fSamplerUniforms;
153 154
154 GrGLVaryingHandler fVaryingHandler; 155 GrGLVaryingHandler fVaryingHandler;
155 GrGLUniformHandler fUniformHandler; 156 GrGLUniformHandler fUniformHandler;
156 157
157 typedef GrGLSLProgramBuilder INHERITED; 158 typedef GrGLSLProgramBuilder INHERITED;
158 }; 159 };
159 #endif 160 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramDesc.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698