aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGlyph.h
diff options
context:
space:
mode:
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); }
///////////////////////////////////////////////////////////////////////////