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

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

Issue 1471293003: Create a static instances of SrcOver XferProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix Build Created 5 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/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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // these emit functions help to keep the createAndEmitProcessors template ge neral 101 // these emit functions help to keep the createAndEmitProcessors template ge neral
102 void emitAndInstallProc(const GrFragmentProcessor&, 102 void emitAndInstallProc(const GrFragmentProcessor&,
103 int index, 103 int index,
104 const char* outColor, 104 const char* outColor,
105 const char* inColor); 105 const char* inColor);
106 void emitAndInstallProc(const GrPrimitiveProcessor&, 106 void emitAndInstallProc(const GrPrimitiveProcessor&,
107 const char* outColor, 107 const char* outColor,
108 const char* outCoverage); 108 const char* outCoverage);
109 void emitAndInstallXferProc(const GrXferProcessor&, 109 void emitAndInstallXferProc(const GrXferProcessor&,
110 const GrGLSLExpr4& colorIn, 110 const GrGLSLExpr4& colorIn,
111 const GrGLSLExpr4& coverageIn); 111 const GrGLSLExpr4& coverageIn,
112 bool ignoresCoverage);
112 113
113 void verify(const GrPrimitiveProcessor&); 114 void verify(const GrPrimitiveProcessor&);
114 void verify(const GrXferProcessor&); 115 void verify(const GrXferProcessor&);
115 void verify(const GrFragmentProcessor&); 116 void verify(const GrFragmentProcessor&);
116 template <class Proc> 117 template <class Proc>
117 void emitSamplers(const GrProcessor&, 118 void emitSamplers(const GrProcessor&,
118 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, 119 GrGLSLTextureSampler::TextureSamplerArray* outSamplers,
119 GrGLInstalledProc<Proc>*); 120 GrGLInstalledProc<Proc>*);
120 121
121 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader, 122 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; 169 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords;
169 SkTArray<UniformHandle> fSamplerUniforms; 170 SkTArray<UniformHandle> fSamplerUniforms;
170 171
171 GrGLVaryingHandler fVaryingHandler; 172 GrGLVaryingHandler fVaryingHandler;
172 173
173 friend class GrGLVaryingHandler; 174 friend class GrGLVaryingHandler;
174 175
175 typedef GrGLSLProgramBuilder INHERITED; 176 typedef GrGLSLProgramBuilder INHERITED;
176 }; 177 };
177 #endif 178 #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