forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c644dff
commit 3f3dba2
Showing
6 changed files
with
49 additions
and
17 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,19 @@ | ||
/* | ||
* Copyright 2024 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_linker_DEFINED | ||
#define sk_linker_DEFINED | ||
|
||
#include "include/c/sk_types.h" | ||
|
||
SK_C_PLUS_PLUS_BEGIN_GUARD | ||
|
||
SK_C_API void sk_linker_keep_alive(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "include/c/sk_linker.h" | ||
|
||
#include "src/c/sk_types_priv.h" | ||
|
||
#include "include/core/SkCubicMap.h" | ||
#include "include/utils/SkAnimCodecPlayer.h" | ||
|
||
#include "src/utils/SkJSON.h" | ||
#include "src/utils/SkOSPath.h" | ||
|
||
void sk_linker_keep_alive(void) { | ||
// This function is needed on Tizen to ensure required types are kept alive | ||
// It is not meant to be executed. | ||
|
||
skjson::ObjectValue* a = nullptr; | ||
auto r = (*a)["tmp"].getType(); | ||
|
||
SkCubicMap* b = nullptr; | ||
(*b).computeYFromX((int)r); | ||
|
||
SkAnimCodecPlayer* c = nullptr; | ||
(*c).seek((uint32_t)123); | ||
|
||
SkOSPath::Join(nullptr, nullptr); | ||
} |
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