aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextStrike.h
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2014-07-25 16:46:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-25 16:46:53 -0700
commitf17bc6cf7ae4b6483ff3a5f52b0672e4243011e3 (patch)
treee9a3e6dfd8711ce88428e0bee9a649e9a1d3eaf4 /src/gpu/GrTextStrike.h
parent1ef960b01b3d76d9dac19a0d38d71dd03bbb9f21 (diff)
Move vertex buffer setup out of drawPackedGlyph().
This gets a very welcome ~10% speedup on my Mac. Committed: https://skia.googlesource.com/skia/+/1d38619389cc1100bd516b9acbf17b7bd42d33ce R=bsalomon@google.com Author: jvanverth@google.com Review URL: https://codereview.chromium.org/414573002
Diffstat (limited to 'src/gpu/GrTextStrike.h')
-rw-r--r--src/gpu/GrTextStrike.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h
index 89b054291d..a5bb6ae5db 100644
--- a/src/gpu/GrTextStrike.h
+++ b/src/gpu/GrTextStrike.h
@@ -34,6 +34,7 @@ public:
const GrFontDescKey* getFontScalerKey() const { return fFontScalerKey; }
GrFontCache* getFontCache() const { return fFontCache; }
GrMaskFormat getMaskFormat() const { return fMaskFormat; }
+ GrTexture* getTexture() const { return fAtlas->getTexture(); }
inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*);
bool addGlyphToAtlas(GrGlyph*, GrFontScaler*);