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

Unified Diff: src/core/SkMatrix.cpp

Issue 1632633002: Delete 2 legacy flags (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « src/core/SkBitmapController.cpp ('k') | src/core/SkMipMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMatrix.cpp
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
index 4b11fdf331ae159efb1aec34f3773d7525b832bf..7ae4ed21eb4cbd78dcbafaed0694816782f4173b 100644
--- a/src/core/SkMatrix.cpp
+++ b/src/core/SkMatrix.cpp
@@ -380,7 +380,6 @@ void SkMatrix::preScale(SkScalar sx, SkScalar sy) {
fMat[kMScaleY] *= sy;
fMat[kMPersp1] *= sy;
-#ifndef SK_SUPPORT_LEGACY_PRESCALE_SEMANTICS
// Attempt to simplify our type when applying an inverse scale.
// TODO: The persp/affine preconditions are in place to keep the mask consistent with
// what computeTypeMask() would produce (persp/skew always implies kScale).
@@ -391,9 +390,6 @@ void SkMatrix::preScale(SkScalar sx, SkScalar sy) {
} else {
this->orTypeMask(kScale_Mask);
}
-#else
- this->orTypeMask(kScale_Mask);
-#endif
}
void SkMatrix::postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
« no previous file with comments | « src/core/SkBitmapController.cpp ('k') | src/core/SkMipMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698