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

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

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 GrGLSLExpr4* outputCoverage); 81 GrGLSLExpr4* outputCoverage);
82 82
83 // these emit functions help to keep the createAndEmitProcessors template ge neral 83 // these emit functions help to keep the createAndEmitProcessors template ge neral
84 void emitAndInstallProc(const GrFragmentProcessor&, 84 void emitAndInstallProc(const GrFragmentProcessor&,
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 virtual 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 GrPixelLocalStorageState plsState);
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

Powered by Google App Engine
This is Rietveld 408576698