diff options
author | 2014-07-25 16:46:53 -0700 | |
---|---|---|
committer | 2014-07-25 16:46:53 -0700 | |
commit | f17bc6cf7ae4b6483ff3a5f52b0672e4243011e3 (patch) | |
tree | e9a3e6dfd8711ce88428e0bee9a649e9a1d3eaf4 /src/gpu/GrTextStrike.h | |
parent | 1ef960b01b3d76d9dac19a0d38d71dd03bbb9f21 (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.h | 1 |
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*); |