diff options
author | 2015-07-31 11:45:22 -0700 | |
---|---|---|
committer | 2015-07-31 11:45:22 -0700 | |
commit | 65e96b4eb94c1b692f7decc18915cff77c5f1ab3 (patch) | |
tree | 71c1644d22637202b918c91f7d93af912ab2eeaa /src/gpu/GrBatchAtlas.cpp | |
parent | 88c7b988ba7792e51e741567426069cd9cc852dd (diff) |
Modifying TextBlobCacheTest to use SkRandomScalerContext
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/adcdca86ce425cf8c28bfad311cef028df756ee8
Review URL: https://codereview.chromium.org/1266003002
Diffstat (limited to 'src/gpu/GrBatchAtlas.cpp')
-rw-r--r-- | src/gpu/GrBatchAtlas.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrBatchAtlas.cpp b/src/gpu/GrBatchAtlas.cpp index 8ffa7f295e..3ce157c710 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; } |