OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |