OLD | NEW |
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 #ifndef GrInOrderDrawBuffer_DEFINED | 8 #ifndef GrInOrderDrawBuffer_DEFINED |
9 #define GrInOrderDrawBuffer_DEFINED | 9 #define GrInOrderDrawBuffer_DEFINED |
10 | 10 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 kClipPreallocCnt = 8, | 225 kClipPreallocCnt = 8, |
226 kClearPreallocCnt = 8, | 226 kClearPreallocCnt = 8, |
227 kGeoPoolStatePreAllocCnt = 4, | 227 kGeoPoolStatePreAllocCnt = 4, |
228 kCopySurfacePreallocCnt = 4, | 228 kCopySurfacePreallocCnt = 4, |
229 }; | 229 }; |
230 | 230 |
231 typedef GrTAllocator<DrawRecord> DrawAllocator; | 231 typedef GrTAllocator<DrawRecord> DrawAllocator; |
232 typedef GrTAllocator<StencilPath> StencilPathAllocator
; | 232 typedef GrTAllocator<StencilPath> StencilPathAllocator
; |
233 typedef GrTAllocator<DrawPath> DrawPathAllocator; | 233 typedef GrTAllocator<DrawPath> DrawPathAllocator; |
234 typedef GrTAllocator<DrawPaths> DrawPathsAllocator; | 234 typedef GrTAllocator<DrawPaths> DrawPathsAllocator; |
235 typedef GrTAllocator<GrDrawState::DeferredState> StateAllocator; | 235 typedef GrTAllocator<GrDrawState> StateAllocator; |
236 typedef GrTAllocator<Clear> ClearAllocator; | 236 typedef GrTAllocator<Clear> ClearAllocator; |
237 typedef GrTAllocator<CopySurface> CopySurfaceAllocator
; | 237 typedef GrTAllocator<CopySurface> CopySurfaceAllocator
; |
238 typedef GrTAllocator<Clip> ClipAllocator; | 238 typedef GrTAllocator<Clip> ClipAllocator; |
239 | 239 |
240 GrSTAllocator<kDrawPreallocCnt, DrawRecord> fDraws; | 240 GrSTAllocator<kDrawPreallocCnt, DrawRecord> fDraws; |
241 GrSTAllocator<kStencilPathPreallocCnt, StencilPath> fStencilP
aths; | 241 GrSTAllocator<kStencilPathPreallocCnt, StencilPath> fStencilP
aths; |
242 GrSTAllocator<kDrawPathPreallocCnt, DrawPath> fDrawPath
; | 242 GrSTAllocator<kDrawPathPreallocCnt, DrawPath> fDrawPath
; |
243 GrSTAllocator<kDrawPathsPreallocCnt, DrawPaths> fDrawPath
s; | 243 GrSTAllocator<kDrawPathsPreallocCnt, DrawPaths> fDrawPath
s; |
244 GrSTAllocator<kStatePreallocCnt, GrDrawState::DeferredState> fStates; | 244 GrSTAllocator<kStatePreallocCnt, GrDrawState> fStates; |
245 GrSTAllocator<kClearPreallocCnt, Clear> fClears; | 245 GrSTAllocator<kClearPreallocCnt, Clear> fClears; |
246 GrSTAllocator<kCopySurfacePreallocCnt, CopySurface> fCopySurf
aces; | 246 GrSTAllocator<kCopySurfacePreallocCnt, CopySurface> fCopySurf
aces; |
247 GrSTAllocator<kClipPreallocCnt, Clip> fClips; | 247 GrSTAllocator<kClipPreallocCnt, Clip> fClips; |
248 | 248 |
249 SkTArray<GrTraceMarkerSet, false> fGpuCmdMa
rkers; | 249 SkTArray<GrTraceMarkerSet, false> fGpuCmdMa
rkers; |
250 | 250 |
251 SkSTArray<kCmdPreallocCnt, uint8_t, true> fCmds; | 251 SkSTArray<kCmdPreallocCnt, uint8_t, true> fCmds; |
252 | 252 |
253 GrDrawTarget* fDstGpu; | 253 GrDrawTarget* fDstGpu; |
254 | 254 |
(...skipping 28 matching lines...) Expand all Loading... |
283 | 283 |
284 void addToCmdBuffer(uint8_t cmd); | 284 void addToCmdBuffer(uint8_t cmd); |
285 | 285 |
286 bool fFlushing; | 286 bool fFlushing; |
287 uint32_t fDrawID; | 287 uint32_t fDrawID; |
288 | 288 |
289 typedef GrDrawTarget INHERITED; | 289 typedef GrDrawTarget INHERITED; |
290 }; | 290 }; |
291 | 291 |
292 #endif | 292 #endif |
OLD | NEW |