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

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

Issue 736133006: more c (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
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
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« include/c/sk_matrix.h ('K') | « include/c/sk_surface.h ('k') | src/c/sk_surface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698