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

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

Issue 746423007: Draft change to start pulling uniform color into GP (Closed) Base URL: https://skia.googlesource.com/skia.git@no_factories
Patch Set: rebase 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/GrGeometryProcessor.cpp ('k') | src/gpu/GrInOrderDrawBuffer.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 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
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
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryProcessor.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698