diff options
author | 2015-10-03 13:28:35 -0700 | |
---|---|---|
committer | 2015-10-03 13:28:35 -0700 | |
commit | 7d5c950e85b4766a05ed834c594033c9dd6913cb (patch) | |
tree | bbbf1e77f02235aca72c0d497ebd7d248cbae925 /src/gpu/GrPathRendering.cpp | |
parent | 19ae315dd06b01312de8fd40b8388aae4de9f05e (diff) |
Simplify nvpr text
- Drops device-space glyphs in favor of perf/simplicity.
- Removes residual complexities that would flip glyphs vertically for
compatibility with nvpr glyph loading, which is no longer used.
- Drops hairline support since they required new paths for every draw
matrix, and could only be supported under certain circumstances.
- Quits checking for color bitmap fonts in canDrawText since the
normal color emoji fallback will handle them anyway.
BUG=skia:
Review URL: https://codereview.chromium.org/1380973002
Diffstat (limited to 'src/gpu/GrPathRendering.cpp')
-rw-r--r-- | src/gpu/GrPathRendering.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpu/GrPathRendering.cpp b/src/gpu/GrPathRendering.cpp index d98d9d2f30..0287eb08aa 100644 --- a/src/gpu/GrPathRendering.cpp +++ b/src/gpu/GrPathRendering.cpp @@ -19,9 +19,7 @@ public: #ifdef SK_DEBUG , fDesc(desc.copy()) #endif - { - fFlipMatrix.setScale(1, -1); - } + {} virtual ~GlyphGenerator() { #ifdef SK_DEBUG @@ -39,7 +37,6 @@ public: fScalerContext->getMetrics(&skGlyph); fScalerContext->getPath(skGlyph, out); - out->transform(fFlipMatrix); // Load glyphs with the inverted y-direction. } #ifdef SK_DEBUG bool isEqualTo(const SkDescriptor& desc) const override { @@ -48,7 +45,6 @@ public: #endif private: const SkAutoTDelete<SkScalerContext> fScalerContext; - SkMatrix fFlipMatrix; #ifdef SK_DEBUG SkDescriptor* const fDesc; #endif |