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

Unified Diff: src/core/SkBitmapProcState.cpp

Issue 2476713002: Fix kMediumQuality invMatrix setup for sizes == mip levels (Closed)
Patch Set: tweak comment Created 4 years, 1 month 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 | « gm/bmpfilterqualityrepeat.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcState.cpp
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp
index 1508f9464356661571845ecf0f510010dc8cd08a..f04379cf20d035112533937fce5d77d03faf2778 100644
--- a/src/core/SkBitmapProcState.cpp
+++ b/src/core/SkBitmapProcState.cpp
@@ -158,7 +158,9 @@ bool SkBitmapProcInfo::init(const SkMatrix& inv, const SkPaint& paint) {
// We don't do this if we're either trivial (can ignore the matrix) or clamping
// in both X and Y since clamping to width,height is just as easy as to 0xFFFF.
- if (!(clampClamp || trivialMatrix)) {
+ // Note that we cannot ignore the matrix when allow_ignore_fractional_translate is false.
+
+ if (!(clampClamp || (trivialMatrix && allow_ignore_fractional_translate))) {
fInvMatrix.postIDiv(fPixmap.width(), fPixmap.height());
}
« no previous file with comments | « gm/bmpfilterqualityrepeat.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698