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

Side by Side Diff: include/c/sk_surface.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_path.h ('k') | include/c/sk_types.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_surface_DEFINED 11 #ifndef sk_surface_DEFINED
12 #define sk_surface_DEFINED 12 #define sk_surface_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_surface_t* sk_surface_new_raster(const sk_imageinfo_t*, const sk_surfaceprops _t*); 18 SK_API sk_surface_t* sk_surface_new_raster(const sk_imageinfo_t*, const sk_surfa ceprops_t*);
19 sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*, void* pixels, size_t rowBytes, 19 SK_API sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*,
20 const sk_surfaceprops_t* props); 20 void* pixels, size_t rowBytes,
21 void sk_surface_unref(sk_surface_t*); 21 const sk_surfaceprops_t* props );
22 SK_API void sk_surface_unref(sk_surface_t*);
22 23
23 /** 24 /**
24 * Return the canvas associated with this surface. Note: the canvas is owned by the surface, 25 * Return the canvas associated with this surface. Note: the canvas is owned by the surface,
25 * so the returned object is only valid while the owning surface is valid. 26 * so the returned object is only valid while the owning surface is valid.
26 */ 27 */
27 sk_canvas_t* sk_surface_get_canvas(sk_surface_t*); 28 SK_API sk_canvas_t* sk_surface_get_canvas(sk_surface_t*);
28 29
29 /** 30 /**
30 * Call sk_image_unref() when the returned image is no longer used. 31 * Call sk_image_unref() when the returned image is no longer used.
31 */ 32 */
32 sk_image_t* sk_surface_new_image_snapshot(sk_surface_t*); 33 SK_API sk_image_t* sk_surface_new_image_snapshot(sk_surface_t*);
33 34
34 SK_C_PLUS_PLUS_END_GUARD 35 SK_C_PLUS_PLUS_END_GUARD
35 36
36 #endif 37 #endif
OLDNEW
« no previous file with comments | « include/c/sk_path.h ('k') | include/c/sk_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698