| Index: src/gpu/GrBatchAtlas.cpp
|
| diff --git a/src/gpu/GrBatchAtlas.cpp b/src/gpu/GrBatchAtlas.cpp
|
| index 8ffa7f295e5e74bedbe691220b66b556e8cc5fbe..3ce157c710a7bb869585fadb8adfa07d0b4d384b 100644
|
| --- a/src/gpu/GrBatchAtlas.cpp
|
| +++ b/src/gpu/GrBatchAtlas.cpp
|
| @@ -42,7 +42,10 @@ public:
|
| // across atlas spills)
|
| uint32_t index() const { return fIndex; }
|
| uint64_t genID() const { return fGenID; }
|
| - GrBatchAtlas::AtlasID id() { return fID; }
|
| + GrBatchAtlas::AtlasID id() {
|
| + SkASSERT(GrBatchAtlas::kInvalidAtlasID != fID);
|
| + return fID;
|
| + }
|
|
|
| GrTexture* texture() const { return fTexture; }
|
|
|
|
|