Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: src/gpu/GrPathRendering.cpp

Issue 1380973002: Simplify nvpr text (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove accidental SampleApp hack Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrStencilAndCoverTextContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPathRendering.cpp
diff --git a/src/gpu/GrPathRendering.cpp b/src/gpu/GrPathRendering.cpp
index d98d9d2f30fc7cc644fc29b467132980bed4cd85..0287eb08aa82c1a5db5c15fd3fcf8dd65fb2c791 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
« no previous file with comments | « no previous file | src/gpu/GrStencilAndCoverTextContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698