aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBatchAtlas.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-31 11:45:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-31 11:45:22 -0700
commit65e96b4eb94c1b692f7decc18915cff77c5f1ab3 (patch)
tree71c1644d22637202b918c91f7d93af912ab2eeaa /src/gpu/GrBatchAtlas.cpp
parent88c7b988ba7792e51e741567426069cd9cc852dd (diff)
Modifying TextBlobCacheTest to use SkRandomScalerContext
Diffstat (limited to 'src/gpu/GrBatchAtlas.cpp')
-rw-r--r--src/gpu/GrBatchAtlas.cpp5
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; }