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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 virtual bool isIssued(uint32_t drawID) SK_OVERRIDE { return drawID != fDrawI
D; } | 253 virtual bool isIssued(uint32_t drawID) SK_OVERRIDE { return drawID != fDrawI
D; } |
254 | 254 |
255 // TODO: Use a single allocator for commands and records | 255 // TODO: Use a single allocator for commands and records |
256 enum { | 256 enum { |
257 kCmdBufferInitialSizeInBytes = 8 * 1024, | 257 kCmdBufferInitialSizeInBytes = 8 * 1024, |
258 kPathIdxBufferMinReserve = 2 * 64, // 64 uint16_t's | 258 kPathIdxBufferMinReserve = 2 * 64, // 64 uint16_t's |
259 kPathXformBufferMinReserve = 2 * 64, // 64 two-float transforms | 259 kPathXformBufferMinReserve = 2 * 64, // 64 two-float transforms |
260 }; | 260 }; |
261 | 261 |
262 CmdBuffer fCmdBuffer; | 262 CmdBuffer fCmdBuffer; |
263 const GrOptDrawState* fPrevState; | 263 GrOptDrawState* fPrevState; |
264 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers; | 264 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers; |
265 SkTDArray<char> fPathIndexBuffer; | 265 SkTDArray<char> fPathIndexBuffer; |
266 SkTDArray<float> fPathTransformBuffer; | 266 SkTDArray<float> fPathTransformBuffer; |
267 uint32_t fDrawID; | 267 uint32_t fDrawID; |
268 | 268 |
269 typedef GrFlushToGpuDrawTarget INHERITED; | 269 typedef GrFlushToGpuDrawTarget INHERITED; |
270 }; | 270 }; |
271 | 271 |
272 #endif | 272 #endif |
OLD | NEW |