aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGlyph.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-09-15 12:14:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-15 16:34:34 +0000
commit03168b8a62a0d3d14b7a0d14642df4d82203b87c (patch)
tree011df89efc1f6416ec08f6b1d6de173ff3000b1b /src/gpu/GrGlyph.h
parenta4083c97d48e8a4f88e2797d7363f141e3d42553 (diff)
Allow GrDrawOpAtlas to grow as needed
Bug: skia:3550 Change-Id: Ib5312c8c06ba8549d90545658df6686c45058255 Reviewed-on: https://skia-review.googlesource.com/45841 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGlyph.h')
-rw-r--r--src/gpu/GrGlyph.h1
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); }
///////////////////////////////////////////////////////////////////////////