aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathRendering.cpp
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-10-03 13:28:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-03 13:28:35 -0700
commit7d5c950e85b4766a05ed834c594033c9dd6913cb (patch)
treebbbf1e77f02235aca72c0d497ebd7d248cbae925 /src/gpu/GrPathRendering.cpp
parent19ae315dd06b01312de8fd40b8388aae4de9f05e (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.cpp6
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