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

Side by Side Diff: src/gpu/gl/GrGLProgram.h

Issue 23537028: Enable vertexless shading when path rendering is supported (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 8
9 #ifndef GrGLProgram_DEFINED 9 #ifndef GrGLProgram_DEFINED
10 #define GrGLProgram_DEFINED 10 #define GrGLProgram_DEFINED
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 */ 54 */
55 void overrideBlend(GrBlendCoeff* srcCoeff, GrBlendCoeff* dstCoeff) const; 55 void overrideBlend(GrBlendCoeff* srcCoeff, GrBlendCoeff* dstCoeff) const;
56 56
57 const GrGLProgramDesc& getDesc() { return fDesc; } 57 const GrGLProgramDesc& getDesc() { return fDesc; }
58 58
59 /** 59 /**
60 * Gets the GL program ID for this program. 60 * Gets the GL program ID for this program.
61 */ 61 */
62 GrGLuint programID() const { return fProgramID; } 62 GrGLuint programID() const { return fProgramID; }
63 63
64 bool hasVertexShader() const { return fHasVertexShader; }
65
64 /** 66 /**
65 * Some GL state that is relevant to programs is not stored per-program. In particular color 67 * Some GL state that is relevant to programs is not stored per-program. In particular color
66 * and coverage attributes can be global state. This struct is read and upda ted by 68 * and coverage attributes can be global state. This struct is read and upda ted by
67 * GrGLProgram::setColor and GrGLProgram::setCoverage to allow us to avoid s etting this state 69 * GrGLProgram::setColor and GrGLProgram::setCoverage to allow us to avoid s etting this state
68 * redundantly. 70 * redundantly.
69 */ 71 */
70 struct SharedGLState { 72 struct SharedGLState {
71 GrColor fConstAttribColor; 73 GrColor fConstAttribColor;
72 int fConstAttribColorIndex; 74 int fConstAttribColorIndex;
73 GrColor fConstAttribCoverage; 75 GrColor fConstAttribCoverage;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 230
229 SkTArray<EffectAndSamplers> fColorEffects; 231 SkTArray<EffectAndSamplers> fColorEffects;
230 SkTArray<EffectAndSamplers> fCoverageEffects; 232 SkTArray<EffectAndSamplers> fCoverageEffects;
231 233
232 GrGLProgramDesc fDesc; 234 GrGLProgramDesc fDesc;
233 GrGpuGL* fGpu; 235 GrGpuGL* fGpu;
234 236
235 GrGLUniformManager fUniformManager; 237 GrGLUniformManager fUniformManager;
236 UniformHandles fUniformHandles; 238 UniformHandles fUniformHandles;
237 239
240 bool fHasVertexShader;
241 int fNumTexGenUnits;
242
238 typedef SkRefCnt INHERITED; 243 typedef SkRefCnt INHERITED;
239 }; 244 };
240 245
241 #endif 246 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698