Closed
打开windowmanager #4
jiangdayuanAdd on Jan 4, 2022Closed at Jan 4, 2022
打开windowmanager #4
Closed
Merged fromrefs/pull/4/headintomaster
Total: 2 files changed+1-2
| @@ -15,7 +15,6 @@ | |||
| 15 | 15 | ||
| 16 | #ifndef OHOS_ROSEN_WINDOW_ADAPTER_H | 16 | #ifndef OHOS_ROSEN_WINDOW_ADAPTER_H |
| 17 | #define OHOS_ROSEN_WINDOW_ADAPTER_H | 17 | #define OHOS_ROSEN_WINDOW_ADAPTER_H |
| 18 | -#define _NEW_RENDERSERVER_ | ||
| 19 | #include <string.h> | 18 | #include <string.h> |
| 20 | #include <cstdint> | 19 | #include <cstdint> |
| 21 | #include <cstdio> | 20 | #include <cstdio> |
| @@ -24,7 +24,7 @@ | |||
| 24 | namespace OHOS { | 24 | namespace OHOS { |
| 25 | namespace Rosen { | 25 | namespace Rosen { |
| 26 | namespace { | 26 | namespace { |
| 27 | -napi_value g_classWindow; | 27 | +thread_local napi_value g_classWindow; |
| 28 | napi_status GetAbility(napi_env env, napi_callback_info info, AppExecFwk::Ability* &pAbility) | 28 | napi_status GetAbility(napi_env env, napi_callback_info info, AppExecFwk::Ability* &pAbility) |
| 29 | { | 29 | { |
| 30 | napi_value global; | 30 | napi_value global; |