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

Unified Diff: include/core/SkCanvas.h

Issue 151923006: Add rotation APIs in radians to SkCanvas, SkMatrix Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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 | include/core/SkMatrix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 7235efb2f0a9cd3b23132541d9c695b0c81e1704..4709f40bcaa49d18eb326e77f2d06d4a4194a530 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -338,6 +338,12 @@ public:
*/
virtual bool rotate(SkScalar degrees);
+ /** Preconcat the current matrix with the specified rotation.
+ @param degrees The amount to rotate, in radians
bsalomon 2014/02/24 17:35:56 The param is called "radians".
+ returns true if the operation succeeded (e.g. did not overflow)
+ */
+ virtual bool rotateRadians(SkScalar radians);
+
/** Preconcat the current matrix with the specified skew.
@param sx The amount to skew in X
@param sy The amount to skew in Y
« no previous file with comments | « no previous file | include/core/SkMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698