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

Unified Diff: src/gpu/GrContext.cpp

Issue 772953002: check matrix does not have rotation or perspective transformation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 607d3c3cc7144788da553418b599084842bb7582..852afe01ba74a2198bcad9f4d3f373ad05336b51 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -650,6 +650,10 @@ static bool apply_aa_to_rect(GrDrawTarget* target,
#endif
combinedMatrix.mapRect(devBoundRect, rect);
+ if (!combinedMatrix.rectStaysRect()) {
+ return true;
+ }
+
if (strokeWidth < 0) {
return !is_irect(*devBoundRect);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698