diff options
Diffstat (limited to 'src/gpu/batches/GrBatch.h')
-rw-r--r-- | src/gpu/batches/GrBatch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/batches/GrBatch.h b/src/gpu/batches/GrBatch.h index aae726eba9..278c826a73 100644 --- a/src/gpu/batches/GrBatch.h +++ b/src/gpu/batches/GrBatch.h @@ -96,11 +96,11 @@ public: uint32_t classID() const { SkASSERT(kIllegalBatchID != fClassID); return fClassID; } // We lazily initialize the uniqueID because currently the only user is GrAuditTrail - uint32_t uniqueID() const { + uint32_t uniqueID() const { if (kIllegalBatchID == fUniqueID) { fUniqueID = GenBatchID(); } - return fUniqueID; + return fUniqueID; } SkDEBUGCODE(bool isUsed() const { return fUsed; }) |