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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | include/core/SkMatrix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 returns true if the operation succeeded (e.g. did not overflow) 331 returns true if the operation succeeded (e.g. did not overflow)
332 */ 332 */
333 virtual bool scale(SkScalar sx, SkScalar sy); 333 virtual bool scale(SkScalar sx, SkScalar sy);
334 334
335 /** Preconcat the current matrix with the specified rotation. 335 /** Preconcat the current matrix with the specified rotation.
336 @param degrees The amount to rotate, in degrees 336 @param degrees The amount to rotate, in degrees
337 returns true if the operation succeeded (e.g. did not overflow) 337 returns true if the operation succeeded (e.g. did not overflow)
338 */ 338 */
339 virtual bool rotate(SkScalar degrees); 339 virtual bool rotate(SkScalar degrees);
340 340
341 /** Preconcat the current matrix with the specified rotation.
342 @param degrees The amount to rotate, in radians
bsalomon 2014/02/24 17:35:56 The param is called "radians".
343 returns true if the operation succeeded (e.g. did not overflow)
344 */
345 virtual bool rotateRadians(SkScalar radians);
346
341 /** Preconcat the current matrix with the specified skew. 347 /** Preconcat the current matrix with the specified skew.
342 @param sx The amount to skew in X 348 @param sx The amount to skew in X
343 @param sy The amount to skew in Y 349 @param sy The amount to skew in Y
344 returns true if the operation succeeded (e.g. did not overflow) 350 returns true if the operation succeeded (e.g. did not overflow)
345 */ 351 */
346 virtual bool skew(SkScalar sx, SkScalar sy); 352 virtual bool skew(SkScalar sx, SkScalar sy);
347 353
348 /** Preconcat the current matrix with the specified matrix. 354 /** Preconcat the current matrix with the specified matrix.
349 @param matrix The matrix to preconcatenate with the current matrix 355 @param matrix The matrix to preconcatenate with the current matrix
350 @return true if the operation succeeded (e.g. did not overflow) 356 @return true if the operation succeeded (e.g. did not overflow)
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 fCanvas->endCommentGroup(); 1206 fCanvas->endCommentGroup();
1201 } 1207 }
1202 } 1208 }
1203 1209
1204 private: 1210 private:
1205 SkCanvas* fCanvas; 1211 SkCanvas* fCanvas;
1206 }; 1212 };
1207 #define SkAutoCommentBlock(...) SK_REQUIRE_LOCAL_VAR(SkAutoCommentBlock) 1213 #define SkAutoCommentBlock(...) SK_REQUIRE_LOCAL_VAR(SkAutoCommentBlock)
1208 1214
1209 #endif 1215 #endif
OLDNEW
« 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