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

Side by Side Diff: src/gpu/GrProgramDesc.h

Issue 777673003: move program descriptor generation to flush (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 6 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 GrProgramDesc_DEFINED 8 #ifndef GrProgramDesc_DEFINED
9 #define GrProgramDesc_DEFINED 9 #define GrProgramDesc_DEFINED
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 }; 96 };
97 97
98 struct KeyHeader { 98 struct KeyHeader {
99 uint8_t fDstReadKey; // set by GrGLShaderBuilder i f there 99 uint8_t fDstReadKey; // set by GrGLShaderBuilder i f there
100 // are effects that must read the dst. 100 // are effects that must read the dst.
101 // Otherwise, 0. 101 // Otherwise, 0.
102 uint8_t fFragPosKey; // set by GrGLShaderBuilder i f there are 102 uint8_t fFragPosKey; // set by GrGLShaderBuilder i f there are
103 // effects that read the frag ment position. 103 // effects that read the frag ment position.
104 // Otherwise, 0. 104 // Otherwise, 0.
105 105
106 SkBool8 fEmitsPointSize;
107
108 ColorInput fColorInput : 8; 106 ColorInput fColorInput : 8;
109 ColorInput fCoverageInput : 8; 107 ColorInput fCoverageInput : 8;
110 108
111 PrimaryOutputType fPrimaryOutputType : 8; 109 PrimaryOutputType fPrimaryOutputType : 8;
112 SecondaryOutputType fSecondaryOutputType : 8; 110 SecondaryOutputType fSecondaryOutputType : 8;
113 111
114 SkBool8 fHasGeometryProcessor; 112 SkBool8 fHasGeometryProcessor;
115 int8_t fColorEffectCnt; 113 int8_t fColorEffectCnt;
116 int8_t fCoverageEffectCnt; 114 int8_t fCoverageEffectCnt;
117 }; 115 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 kPreAllocSize = kHeaderOffset + kHeaderSize + 195 kPreAllocSize = kHeaderOffset + kHeaderSize +
198 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc essor, 196 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc essor,
199 }; 197 };
200 198
201 SkSTArray<kPreAllocSize, uint8_t, true> fKey; 199 SkSTArray<kPreAllocSize, uint8_t, true> fKey;
202 200
203 friend class GrGLProgramDescBuilder; 201 friend class GrGLProgramDescBuilder;
204 }; 202 };
205 203
206 #endif 204 #endif
OLDNEW
« src/gpu/GrOptDrawState.h ('K') | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698