forked from revery-ui/esy-skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Re-work the managed types - pass a context around - clean up the API * Add hooks for working with native types directly * Split the duplicate and fork for SkManagedStream * Add unref for sk_vertices_t
- Loading branch information
1 parent
54589eb
commit 45d2598
Showing
21 changed files
with
470 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2019 Microsoft Corporation. All rights reserved. | ||
* | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
*/ | ||
|
||
#ifndef sk_general_DEFINED | ||
#define sk_general_DEFINED | ||
|
||
#include "sk_types.h" | ||
|
||
SK_C_PLUS_PLUS_BEGIN_GUARD | ||
|
||
// ref counting | ||
|
||
SK_C_API bool sk_refcnt_unique(const sk_refcnt_t* refcnt); | ||
SK_C_API int sk_refcnt_get_ref_count(const sk_refcnt_t* refcnt); | ||
SK_C_API void sk_refcnt_safe_ref(sk_refcnt_t* refcnt); | ||
SK_C_API void sk_refcnt_safe_unref(sk_refcnt_t* refcnt); | ||
|
||
SK_C_API bool sk_nvrefcnt_unique(const sk_nvrefcnt_t* refcnt); | ||
SK_C_API int sk_nvrefcnt_get_ref_count(const sk_nvrefcnt_t* refcnt); | ||
SK_C_API void sk_nvrefcnt_safe_ref(sk_nvrefcnt_t* refcnt); | ||
SK_C_API void sk_nvrefcnt_safe_unref(sk_nvrefcnt_t* refcnt); | ||
|
||
// color type | ||
|
||
SK_C_API sk_colortype_t sk_colortype_get_default_8888(void); | ||
|
||
SK_C_PLUS_PLUS_END_GUARD | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.