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

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

Issue 1307183006: C API: Add SK_API, also documentation of an example. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-01 (Tuesday) 12:56:15 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_canvas.h ('k') | include/c/sk_image.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_data_DEFINED 11 #ifndef sk_data_DEFINED
12 #define sk_data_DEFINED 12 #define sk_data_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 sk_data_t* sk_data_new_empty(); 18 SK_API sk_data_t* sk_data_new_empty();
19 sk_data_t* sk_data_new_with_copy(const void* src, size_t length); 19 SK_API sk_data_t* sk_data_new_with_copy(const void* src, size_t length);
20 sk_data_t* sk_data_new_from_malloc(const void* memory, size_t length); 20 SK_API sk_data_t* sk_data_new_from_malloc(const void* memory, size_t length);
21 sk_data_t* sk_data_new_subset(const sk_data_t* src, size_t offset, size_t length ); 21 SK_API sk_data_t* sk_data_new_subset(const sk_data_t* src, size_t offset, size_t length);
22 22
23 void sk_data_ref(const sk_data_t*); 23 SK_API void sk_data_ref(const sk_data_t*);
24 void sk_data_unref(const sk_data_t*); 24 SK_API void sk_data_unref(const sk_data_t*);
25 25
26 size_t sk_data_get_size(const sk_data_t*); 26 SK_API size_t sk_data_get_size(const sk_data_t*);
27 const void* sk_data_get_data(const sk_data_t*); 27 SK_API const void* sk_data_get_data(const sk_data_t*);
28 28
29 SK_C_PLUS_PLUS_END_GUARD 29 SK_C_PLUS_PLUS_END_GUARD
30 30
31 #endif 31 #endif
OLDNEW
« no previous file with comments | « include/c/sk_canvas.h ('k') | include/c/sk_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698