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

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

Issue 678073005: Patch to remove constant attributes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 1 month 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/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.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 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 }; 87 };
88 88
89 struct KeyHeader { 89 struct KeyHeader {
90 uint8_t fDstReadKey; // set by GrGLShaderBuil der if there 90 uint8_t fDstReadKey; // set by GrGLShaderBuil der if there
91 // are effects that must read the dst. 91 // are effects that must read the dst.
92 // Otherwise, 0. 92 // Otherwise, 0.
93 uint8_t fFragPosKey; // set by GrGLShaderBuil der if there are 93 uint8_t fFragPosKey; // set by GrGLShaderBuil der if there are
94 // effects that read the fragment position. 94 // effects that read the fragment position.
95 // Otherwise, 0. 95 // Otherwise, 0.
96 96
97 SkBool8 fUseFragShaderOnly; 97 SkBool8 fUseNvpr;
98 SkBool8 fEmitsPointSize; 98 SkBool8 fEmitsPointSize;
99 99
100 ColorInput fColorInput : 8; 100 ColorInput fColorInput : 8;
101 ColorInput fCoverageInput : 8; 101 ColorInput fCoverageInput : 8;
102 102
103 GrOptDrawState::PrimaryOutputType fPrimaryOutputType : 8; 103 GrOptDrawState::PrimaryOutputType fPrimaryOutputType : 8;
104 GrOptDrawState::SecondaryOutputType fSecondaryOutputType : 8; 104 GrOptDrawState::SecondaryOutputType fSecondaryOutputType : 8;
105 105
106 int8_t fPositionAttributeIndex; 106 int8_t fPositionAttributeIndex;
107 int8_t fLocalCoordAttributeIndex; 107 int8_t fLocalCoordAttributeIndex;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // visible to GrGLProcessors. Then make public accessors as necessary and re move friends. 206 // visible to GrGLProcessors. Then make public accessors as necessary and re move friends.
207 friend class GrGLProgram; 207 friend class GrGLProgram;
208 friend class GrGLProgramBuilder; 208 friend class GrGLProgramBuilder;
209 friend class GrGLLegacyNvprProgramBuilder; 209 friend class GrGLLegacyNvprProgramBuilder;
210 friend class GrGLVertexBuilder; 210 friend class GrGLVertexBuilder;
211 friend class GrGLFragmentShaderBuilder; 211 friend class GrGLFragmentShaderBuilder;
212 friend class GrGLGeometryBuilder; 212 friend class GrGLGeometryBuilder;
213 }; 213 };
214 214
215 #endif 215 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698