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

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

Issue 1131553002: Isolate GrBufferAllocPools inside GrBatchTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 5 years, 7 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/GrAtlasTextContext.cpp ('k') | src/gpu/GrBatch.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 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 <new> 11 #include <new>
12 #include "GrBatchTarget.h" 12 #include "GrBatchTarget.h"
13 #include "GrGeometryProcessor.h" 13 #include "GrGeometryProcessor.h"
14 #include "GrVertices.h" 14 #include "GrVertices.h"
15 #include "SkRefCnt.h" 15 #include "SkRefCnt.h"
16 #include "SkThread.h" 16 #include "SkThread.h"
17 #include "SkTypes.h" 17 #include "SkTypes.h"
18 18
19 class GrGpu; 19 class GrGpu;
20 class GrIndexBufferAllocPool;
21 class GrPipeline; 20 class GrPipeline;
22 class GrVertexBufferAllocPool;
23 21
24 struct GrInitInvariantOutput; 22 struct GrInitInvariantOutput;
25 23
26 /* 24 /*
27 * GrBatch is the base class for all Ganesh deferred geometry generators. To fa cilitate 25 * GrBatch is the base class for all Ganesh deferred geometry generators. To fa cilitate
28 * reorderable batching, Ganesh does not generate geometry inline with draw call s. Instead, it 26 * reorderable batching, Ganesh does not generate geometry inline with draw call s. Instead, it
29 * captures the arguments to the draw and then generates the geometry on demand. This gives GrBatch 27 * captures the arguments to the draw and then generates the geometry on demand. This gives GrBatch
30 * subclasses complete freedom to decide how / what they can batch. 28 * subclasses complete freedom to decide how / what they can batch.
31 * 29 *
32 * Batches are created when GrContext processes a draw call. Batches of the same subclass may be 30 * Batches are created when GrContext processes a draw call. Batches of the same subclass may be
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 static int32_t gCurrBatchClassID; 173 static int32_t gCurrBatchClassID;
176 174
177 SkDEBUGCODE(bool fUsed;) 175 SkDEBUGCODE(bool fUsed;)
178 176
179 int fNumberOfDraws; 177 int fNumberOfDraws;
180 178
181 typedef SkRefCnt INHERITED; 179 typedef SkRefCnt INHERITED;
182 }; 180 };
183 181
184 #endif 182 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698