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

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

Issue 776243005: Revert of move program descriptor generation to flush (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrTest.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 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
106 ColorInput fColorInput : 8; 108 ColorInput fColorInput : 8;
107 ColorInput fCoverageInput : 8; 109 ColorInput fCoverageInput : 8;
108 110
109 PrimaryOutputType fPrimaryOutputType : 8; 111 PrimaryOutputType fPrimaryOutputType : 8;
110 SecondaryOutputType fSecondaryOutputType : 8; 112 SecondaryOutputType fSecondaryOutputType : 8;
111 113
112 SkBool8 fHasGeometryProcessor; 114 SkBool8 fHasGeometryProcessor;
113 int8_t fColorEffectCnt; 115 int8_t fColorEffectCnt;
114 int8_t fCoverageEffectCnt; 116 int8_t fCoverageEffectCnt;
115 }; 117 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 kPreAllocSize = kHeaderOffset + kHeaderSize + 197 kPreAllocSize = kHeaderOffset + kHeaderSize +
196 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc essor, 198 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc essor,
197 }; 199 };
198 200
199 SkSTArray<kPreAllocSize, uint8_t, true> fKey; 201 SkSTArray<kPreAllocSize, uint8_t, true> fKey;
200 202
201 friend class GrGLProgramDescBuilder; 203 friend class GrGLProgramDescBuilder;
202 }; 204 };
203 205
204 #endif 206 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698