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

Side by Side Diff: include/c/sk_matrix.h

Issue 1271023002: Documentation: C API comments in include/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-01 (Tuesday) 13:39:17 EDT Created 5 years, 3 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 | « include/c/sk_maskfilter.h ('k') | include/c/sk_paint.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 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL 8 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL
9 // DO NOT USE -- FOR INTERNAL TESTING ONLY 9 // DO NOT USE -- FOR INTERNAL TESTING ONLY
10 10
11 #ifndef sk_matrix_DEFINED 11 #ifndef sk_matrix_DEFINED
12 #define sk_matrix_DEFINED 12 #define sk_matrix_DEFINED
13 13
14 #include "sk_types.h" 14 #include "sk_types.h"
15 15
16 SK_C_PLUS_PLUS_BEGIN_GUARD 16 SK_C_PLUS_PLUS_BEGIN_GUARD
17 17
18 /** Set the matrix to identity */
18 void sk_matrix_set_identity(sk_matrix_t*); 19 void sk_matrix_set_identity(sk_matrix_t*);
19 20
21 /** Set the matrix to translate by (tx, ty). */
20 void sk_matrix_set_translate(sk_matrix_t*, float tx, float ty); 22 void sk_matrix_set_translate(sk_matrix_t*, float tx, float ty);
23 /**
24 Preconcats the matrix with the specified translation.
25 M' = M * T(dx, dy)
26 */
21 void sk_matrix_pre_translate(sk_matrix_t*, float tx, float ty); 27 void sk_matrix_pre_translate(sk_matrix_t*, float tx, float ty);
28 /**
29 Postconcats the matrix with the specified translation.
30 M' = T(dx, dy) * M
31 */
22 void sk_matrix_post_translate(sk_matrix_t*, float tx, float ty); 32 void sk_matrix_post_translate(sk_matrix_t*, float tx, float ty);
23 33
34 /** Set the matrix to scale by sx and sy. */
24 void sk_matrix_set_scale(sk_matrix_t*, float sx, float sy); 35 void sk_matrix_set_scale(sk_matrix_t*, float sx, float sy);
36 /**
37 Preconcats the matrix with the specified scale.
38 M' = M * S(sx, sy)
39 */
25 void sk_matrix_pre_scale(sk_matrix_t*, float sx, float sy); 40 void sk_matrix_pre_scale(sk_matrix_t*, float sx, float sy);
41 /**
42 Postconcats the matrix with the specified scale.
43 M' = S(sx, sy) * M
44 */
26 void sk_matrix_post_scale(sk_matrix_t*, float sx, float sy); 45 void sk_matrix_post_scale(sk_matrix_t*, float sx, float sy);
27 46
28 SK_C_PLUS_PLUS_END_GUARD 47 SK_C_PLUS_PLUS_END_GUARD
29 48
30 #endif 49 #endif
OLDNEW
« no previous file with comments | « include/c/sk_maskfilter.h ('k') | include/c/sk_paint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698