diff options
author | 2017-09-18 10:05:00 -0400 | |
---|---|---|
committer | 2017-09-18 16:26:19 +0000 | |
commit | eafa64b4018a334daae74492fb33bc54bd0bb6aa (patch) | |
tree | 9b74611bfc30799b3d81c0dbad66668173529294 /src/gpu/GrGlyph.h | |
parent | 7aeefdb0a2a71e03f796854a7a623827a3a69e8f (diff) |
Revert "Revert "Allow GrDrawOpAtlas to grow as needed""
Bug: skia:3550
Change-Id: I11a3b39ed7470542447f0e46141a26eef7a9bdaf
Reviewed-on: https://skia-review.googlesource.com/47240
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/GrGlyph.h')
-rw-r--r-- | src/gpu/GrGlyph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrGlyph.h b/src/gpu/GrGlyph.h index 5005b74543..fbd389e4ab 100644 --- a/src/gpu/GrGlyph.h +++ b/src/gpu/GrGlyph.h @@ -61,6 +61,7 @@ struct GrGlyph { int height() const { return fBounds.height(); } bool isEmpty() const { return fBounds.isEmpty(); } uint16_t glyphID() const { return UnpackID(fPackedID); } + uint32_t pageIndex() const { return GrDrawOpAtlas::GetPageIndexFromID(fID); } /////////////////////////////////////////////////////////////////////////// |