| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 OPAQUE_SK_ALPHATYPE, | 46 OPAQUE_SK_ALPHATYPE, |
| 47 PREMUL_SK_ALPHATYPE, | 47 PREMUL_SK_ALPHATYPE, |
| 48 UNPREMUL_SK_ALPHATYPE, | 48 UNPREMUL_SK_ALPHATYPE, |
| 49 } sk_alphatype_t; | 49 } sk_alphatype_t; |
| 50 | 50 |
| 51 typedef enum { | 51 typedef enum { |
| 52 INTERSECT_SK_CLIPTYPE, | 52 INTERSECT_SK_CLIPTYPE, |
| 53 DIFFERENCE_SK_CLIPTYPE, | 53 DIFFERENCE_SK_CLIPTYPE, |
| 54 } sk_cliptype_t; | 54 } sk_cliptype_t; |
| 55 | 55 |
| 56 typedef enum { |
| 57 UNKNOWN_SK_PIXELGEOMETRY, |
| 58 RGB_H_SK_PIXELGEOMETRY, |
| 59 BGR_H_SK_PIXELGEOMETRY, |
| 60 RGB_V_SK_PIXELGEOMETRY, |
| 61 BGR_V_SK_PIXELGEOMETRY, |
| 62 } sk_pixelgeometry_t; |
| 63 |
| 56 sk_colortype_t sk_colortype_get_default_8888(); | 64 sk_colortype_t sk_colortype_get_default_8888(); |
| 57 | 65 |
| 58 typedef struct { | 66 typedef struct { |
| 59 int32_t width; | 67 int32_t width; |
| 60 int32_t height; | 68 int32_t height; |
| 61 sk_colortype_t colorType; | 69 sk_colortype_t colorType; |
| 62 sk_alphatype_t alphaType; | 70 sk_alphatype_t alphaType; |
| 63 } sk_imageinfo_t; | 71 } sk_imageinfo_t; |
| 64 | 72 |
| 65 typedef struct { | 73 typedef struct { |
| 74 sk_pixelgeometry_t pixelGeometry; |
| 75 } sk_surfaceprops_t; |
| 76 |
| 77 typedef struct { |
| 66 float x; | 78 float x; |
| 67 float y; | 79 float y; |
| 68 } sk_point_t; | 80 } sk_point_t; |
| 69 | 81 |
| 70 typedef struct { | 82 typedef struct { |
| 71 float left; | 83 float left; |
| 72 float top; | 84 float top; |
| 73 float right; | 85 float right; |
| 74 float bottom; | 86 float bottom; |
| 75 } sk_rect_t; | 87 } sk_rect_t; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 92 ////////////////////////////////////////////////////////////////////////////////
////////// | 104 ////////////////////////////////////////////////////////////////////////////////
////////// |
| 93 | 105 |
| 94 #ifdef __cplusplus | 106 #ifdef __cplusplus |
| 95 class SkCanvas; | 107 class SkCanvas; |
| 96 void sk_test_capi(SkCanvas*); | 108 void sk_test_capi(SkCanvas*); |
| 97 #endif | 109 #endif |
| 98 | 110 |
| 99 SK_C_PLUS_PLUS_END_GUARD | 111 SK_C_PLUS_PLUS_END_GUARD |
| 100 | 112 |
| 101 #endif | 113 #endif |
| OLD | NEW |