diff --git a/shell/platform/ohos/ohos_shell_holder.cpp b/shell/platform/ohos/ohos_shell_holder.cpp index 980c63fee54fa67b7a5c7e1dcef6d5138ddf6c61..980840cee1f963c3384a9d7c1f58f9767ba14f12 100644 --- a/shell/platform/ohos/ohos_shell_holder.cpp +++ b/shell/platform/ohos/ohos_shell_holder.cpp @@ -149,7 +149,7 @@ OHOSShellHolder::OHOSShellHolder( auto vsync_waiter = std::shared_ptr(shell_->GetVsyncWaiter().lock()); auto vsync_waiter_ohos = std::static_pointer_cast(vsync_waiter); displays.push_back(std::make_unique(vsync_waiter_ohos)); - shell_->OnDisplayUpdates(DisplayUpdateType::kStartUp, std::move(displays)); + shell_->OnDisplayUpdates(DisplayUpdateType::kStartup, std::move(displays)); shell_->GetDartVM()->GetConcurrentMessageLoop()->PostTaskToAllWorkers([]() { if (::setpriority(PRIO_PROCESS, gettid(), 1) != 0) { diff --git a/shell/platform/ohos/vsync_waiter_ohos.h b/shell/platform/ohos/vsync_waiter_ohos.h index 020b804cdf1c2571391d888738f4c6a6c02b7d36..51f0ab05bddcc5523ce791c04606227cbde09b4a 100644 --- a/shell/platform/ohos/vsync_waiter_ohos.h +++ b/shell/platform/ohos/vsync_waiter_ohos.h @@ -46,12 +46,10 @@ private: fml::TimePoint frame_start_time, fml::TimePoint frame_target_time); void SetDvsyncSwitch(bool enableDvsync); - std::atomic dvsyncEnabled{false}; + std::atomic dvsyncEnabled{false}; thread_local static bool firstCall; OH_NativeVSync* vsyncHandle; - FML_DISALLOW_COPY_AND_ASSIGN(VsyncWaiterOHOS); - OH_NativeVSync* vsyncHandle; NativeDvsyncFunc nativeDvsyncFunc_ = nullptr; void *handle_ = nullptr; int32_t apiVersion_ = 0;