aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrBatch.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-09-17 11:50:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-17 11:50:57 -0700
commiteb44d53cf96a7eaf103a98d76079ce1f5495e343 (patch)
tree5693fc5be9ef4dccb7917b13905d821963b48e4f /src/gpu/batches/GrBatch.cpp
parenta7008403dcd03302e88e2df546d8427afe9e0e80 (diff)
add a ClassID function to GrBatch
Diffstat (limited to 'src/gpu/batches/GrBatch.cpp')
-rw-r--r--src/gpu/batches/GrBatch.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/batches/GrBatch.cpp b/src/gpu/batches/GrBatch.cpp
index a3a9884b0f..19c19ffcf1 100644
--- a/src/gpu/batches/GrBatch.cpp
+++ b/src/gpu/batches/GrBatch.cpp
@@ -46,10 +46,10 @@ void GrBatch::operator delete(void* target) {
return MemoryPoolAccessor().pool()->release(target);
}
-GrBatch::GrBatch()
- : fClassID(kIllegalBatchID)
+GrBatch::GrBatch(uint32_t classID)
+ : fClassID(classID)
#if GR_BATCH_SPEW
- , fUniqueID(GenID(&gCurrBatchUniqueID))
+ , fUniqueID(GenBatchID())
#endif
{
SkDEBUGCODE(fUsed = false;)