| OLD | NEW |
| 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 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 sk_colortype_t sk_colortype_get_default_8888(); | 51 sk_colortype_t sk_colortype_get_default_8888(); |
| 52 | 52 |
| 53 typedef struct { | 53 typedef struct { |
| 54 int32_t width; | 54 int32_t width; |
| 55 int32_t height; | 55 int32_t height; |
| 56 sk_colortype_t colorType; | 56 sk_colortype_t colorType; |
| 57 sk_alphatype_t alphaType; | 57 sk_alphatype_t alphaType; |
| 58 } sk_imageinfo_t; | 58 } sk_imageinfo_t; |
| 59 | 59 |
| 60 typedef struct { | 60 typedef struct { |
| 61 float x; |
| 62 float y; |
| 63 } sk_point_t; |
| 64 |
| 65 typedef struct { |
| 61 float left; | 66 float left; |
| 62 float top; | 67 float top; |
| 63 float right; | 68 float right; |
| 64 float bottom; | 69 float bottom; |
| 65 } sk_rect_t; | 70 } sk_rect_t; |
| 66 | 71 |
| 72 typedef struct { |
| 73 float mat[9]; |
| 74 } sk_matrix_t; |
| 75 |
| 67 typedef struct sk_canvas_t sk_canvas_t; | 76 typedef struct sk_canvas_t sk_canvas_t; |
| 68 typedef struct sk_image_t sk_image_t; | 77 typedef struct sk_image_t sk_image_t; |
| 69 typedef struct sk_paint_t sk_paint_t; | 78 typedef struct sk_paint_t sk_paint_t; |
| 70 typedef struct sk_path_t sk_path_t; | 79 typedef struct sk_path_t sk_path_t; |
| 80 typedef struct sk_shader_t sk_shader_t; |
| 71 typedef struct sk_surface_t sk_surface_t; | 81 typedef struct sk_surface_t sk_surface_t; |
| 72 | 82 |
| 73 ////////////////////////////////////////////////////////////////////////////////
////////// | 83 ////////////////////////////////////////////////////////////////////////////////
////////// |
| 74 | 84 |
| 75 #ifdef __cplusplus | 85 #ifdef __cplusplus |
| 76 class SkCanvas; | 86 class SkCanvas; |
| 77 void sk_test_capi(SkCanvas*); | 87 void sk_test_capi(SkCanvas*); |
| 78 #endif | 88 #endif |
| 79 | 89 |
| 80 SK_C_PLUS_PLUS_END_GUARD | 90 SK_C_PLUS_PLUS_END_GUARD |
| 81 | 91 |
| 82 #endif | 92 #endif |
| OLD | NEW |