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

Unified Diff: src/core/SkScalerContext.h

Issue 2276583003: SkScalerContextRec::computeMatrices to return status. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/core/SkScalerContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScalerContext.h
diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h
index ffde83cb0a9e456f6baf035ca7feb8358983069b..87d022a8eeecfadb8c07f8200f72c633b4fa2d83 100644
--- a/src/core/SkScalerContext.h
+++ b/src/core/SkScalerContext.h
@@ -146,8 +146,9 @@ struct SkScalerContextRec {
* @param remainingWithoutRotation apply after scale to apply the total matrix sans rotation.
* @param remainingRotation apply after remainingWithoutRotation to apply the total matrix.
* @param total the total matrix.
+ * @return false if the matrix was singular. The output will be valid but not invertable.
*/
- void computeMatrices(PreMatrixScale preMatrixScale,
+ bool computeMatrices(PreMatrixScale preMatrixScale,
SkVector* scale, SkMatrix* remaining,
SkMatrix* remainingWithoutRotation = nullptr,
SkMatrix* remainingRotation = nullptr,
« no previous file with comments | « no previous file | src/core/SkScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698