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

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

Issue 14633007: Key shader on whether frag pos read is relative to top-left or bottom-left (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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 2013 Google Inc. 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED 8 #ifndef GrGLProgramDesc_DEFINED
9 #define GrGLProgramDesc_DEFINED 9 #define GrGLProgramDesc_DEFINED
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 GrGLEffect::EffectKey fEffectKeys[GrDrawState::kNumStages]; 100 GrGLEffect::EffectKey fEffectKeys[GrDrawState::kNumStages];
101 101
102 // To enable experimental geometry shader code (not for use in 102 // To enable experimental geometry shader code (not for use in
103 // production) 103 // production)
104 #if GR_GL_EXPERIMENTAL_GS 104 #if GR_GL_EXPERIMENTAL_GS
105 bool fExperimentalGS; 105 bool fExperimentalGS;
106 #endif 106 #endif
107 107
108 GrGLShaderBuilder::DstReadKey fDstRead; // set by GrGLShaderBuil der if there 108 GrGLShaderBuilder::DstReadKey fDstRead; // set by GrGLShaderBuil der if there
109 // are effects that must read the dst. 109 // are effects that must read the dst.
110 // Otherwise, 0. 110 // Otherwise, 0.
robertphillips 2013/05/10 13:53:58 fFragPosKey?
bsalomon 2013/05/13 15:16:49 Done, and changed fDstRead->fDstReadKey
111 GrGLShaderBuilder::FragPosKey fFragPos; // set by GrGLShaderBuil der if there are
112 // effects that read the fragment position.
113 // Otherwise, 0.
111 114
112 // should the FS discard if the coverage is zero (to avoid stencil manipulat ion) 115 // should the FS discard if the coverage is zero (to avoid stencil manipulat ion)
113 SkBool8 fDiscardIfZeroCoverage; 116 SkBool8 fDiscardIfZeroCoverage;
114 117
115 uint8_t fColorInput; // casts to enum ColorIn put 118 uint8_t fColorInput; // casts to enum ColorIn put
116 uint8_t fCoverageInput; // casts to enum ColorIn put 119 uint8_t fCoverageInput; // casts to enum ColorIn put
117 uint8_t fCoverageOutput; // casts to enum Coverag eOutput 120 uint8_t fCoverageOutput; // casts to enum Coverag eOutput
118 121
119 int8_t fFirstCoverageStage; 122 int8_t fFirstCoverageStage;
120 SkBool8 fEmitsPointSize; 123 SkBool8 fEmitsPointSize;
121 uint8_t fColorFilterXfermode; // casts to enum SkXferm ode::Mode 124 uint8_t fColorFilterXfermode; // casts to enum SkXferm ode::Mode
122 125
123 int8_t fPositionAttributeIndex; 126 int8_t fPositionAttributeIndex;
124 int8_t fLocalCoordAttributeIndex; 127 int8_t fLocalCoordAttributeIndex;
125 int8_t fColorAttributeIndex; 128 int8_t fColorAttributeIndex;
126 int8_t fCoverageAttributeIndex; 129 int8_t fCoverageAttributeIndex;
127 130
128 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Move all 131 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod e. TODO: Move all
129 // code generation to GrGLShaderBuilder (and maybe add getters rather than f riending). 132 // code generation to GrGLShaderBuilder (and maybe add getters rather than f riending).
130 friend class GrGLProgram; 133 friend class GrGLProgram;
131 friend class GrGLShaderBuilder; 134 friend class GrGLShaderBuilder;
132 }; 135 };
133 136
134 #endif 137 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698