commit | f17bc6cf7ae4b6483ff3a5f52b0672e4243011e3 | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Fri Jul 25 16:46:53 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jul 25 16:46:53 2014 -0700 |
tree | e9a3e6dfd8711ce88428e0bee9a649e9a1d3eaf4 | |
parent | 1ef960b01b3d76d9dac19a0d38d71dd03bbb9f21 [diff] [blame] |
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
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h index 89b0542..a5bb6ae 100644 --- a/src/gpu/GrTextStrike.h +++ b/src/gpu/GrTextStrike.h
@@ -34,6 +34,7 @@ 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*);