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

Side by Side Diff: src/gpu/batches/GrBatch.h

Issue 2078483002: Start using GrGpuCommandBuffer in GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@memoryWAR
Patch Set: remove errant lines Created 4 years, 6 months 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/GrGpuCommandBuffer.cpp ('k') | src/gpu/batches/GrClearBatch.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 GrBatch_DEFINED 8 #ifndef GrBatch_DEFINED
9 #define GrBatch_DEFINED 9 #define GrBatch_DEFINED
10 10
11 #include "../private/SkAtomics.h" 11 #include "../private/SkAtomics.h"
12 #include "GrNonAtomicRef.h" 12 #include "GrNonAtomicRef.h"
13 #include "SkRect.h" 13 #include "SkRect.h"
14 #include "SkString.h" 14 #include "SkString.h"
15 15
16 #include <new> 16 #include <new>
17 17
18 class GrCaps; 18 class GrCaps;
19 class GrGpuCommandBuffer;
19 class GrBatchFlushState; 20 class GrBatchFlushState;
20 class GrRenderTarget; 21 class GrRenderTarget;
21 22
22 /** 23 /**
23 * GrBatch is the base class for all Ganesh deferred geometry generators. To fa cilitate 24 * GrBatch is the base class for all Ganesh deferred geometry generators. To fa cilitate
24 * reorderable batching, Ganesh does not generate geometry inline with draw call s. Instead, it 25 * reorderable batching, Ganesh does not generate geometry inline with draw call s. Instead, it
25 * captures the arguments to the draw and then generates the geometry on demand. This gives GrBatch 26 * captures the arguments to the draw and then generates the geometry on demand. This gives GrBatch
26 * subclasses complete freedom to decide how / what they can batch. 27 * subclasses complete freedom to decide how / what they can batch.
27 * 28 *
28 * Batches are created when GrContext processes a draw call. Batches of the same subclass may be 29 * Batches are created when GrContext processes a draw call. Batches of the same subclass may be
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 159
159 SkDEBUGCODE(bool fUsed;) 160 SkDEBUGCODE(bool fUsed;)
160 const uint32_t fClassID; 161 const uint32_t fClassID;
161 static uint32_t GenBatchID() { return GenID(&gCurrBatchUniqueID); } 162 static uint32_t GenBatchID() { return GenID(&gCurrBatchUniqueID); }
162 mutable uint32_t fUniqueID; 163 mutable uint32_t fUniqueID;
163 static int32_t gCurrBatchUniqueID; 164 static int32_t gCurrBatchUniqueID;
164 static int32_t gCurrBatchClassID; 165 static int32_t gCurrBatchClassID;
165 }; 166 };
166 167
167 #endif 168 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpuCommandBuffer.cpp ('k') | src/gpu/batches/GrClearBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698