aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGlyph.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-09-18 10:05:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-18 16:26:19 +0000
commiteafa64b4018a334daae74492fb33bc54bd0bb6aa (patch)
tree9b74611bfc30799b3d81c0dbad66668173529294 /src/gpu/GrGlyph.h
parent7aeefdb0a2a71e03f796854a7a623827a3a69e8f (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.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); }
///////////////////////////////////////////////////////////////////////////