Lines Matching full:shell
6 #include "flutter/shell/common/shell.h"
24 #include "flutter/shell/common/engine.h"
25 #include "flutter/shell/common/persistent_cache.h"
26 #include "flutter/shell/common/skia_event_tracer_impl.h"
27 #include "flutter/shell/common/switches.h"
28 #include "flutter/shell/common/vsync_waiter.h"
35 std::unique_ptr<Shell> Shell::CreateShellOnPlatformThread( in CreateShellOnPlatformThread()
41 Shell::CreateCallback<PlatformView> on_create_platform_view, in CreateShellOnPlatformThread()
42 Shell::CreateCallback<Rasterizer> on_create_rasterizer) { in CreateShellOnPlatformThread()
44 FML_LOG(ERROR) << "Task runners to run the shell were invalid."; in CreateShellOnPlatformThread()
48 auto shell = in CreateShellOnPlatformThread() local
49 std::unique_ptr<Shell>(new Shell(std::move(vm), task_runners, settings)); in CreateShellOnPlatformThread()
52 auto platform_view = on_create_platform_view(*shell.get()); in CreateShellOnPlatformThread()
70 auto io_task_runner = shell->GetTaskRunners().GetIOTaskRunner(); in CreateShellOnPlatformThread()
92 shell = shell.get() // in CreateShellOnPlatformThread()
95 if (auto new_rasterizer = on_create_rasterizer(*shell)) { in CreateShellOnPlatformThread()
107 shell->GetTaskRunners().GetUITaskRunner(), in CreateShellOnPlatformThread()
110 shell = shell.get(), // in CreateShellOnPlatformThread()
117 const auto& task_runners = shell->GetTaskRunners(); in CreateShellOnPlatformThread()
121 auto animator = std::make_unique<Animator>(*shell, task_runners, in CreateShellOnPlatformThread()
124 engine = std::make_unique<Engine>(*shell, // in CreateShellOnPlatformThread()
125 *shell->GetDartVM(), // in CreateShellOnPlatformThread()
129 shell->GetSettings(), // in CreateShellOnPlatformThread()
140 if (!shell->Setup(std::move(platform_view), // in CreateShellOnPlatformThread()
148 return shell; in CreateShellOnPlatformThread()
158 // the process. These have to be setup before the shell or any of its
161 // that cause shell initialization failures will still lead to some of their
194 FML_DLOG(WARNING) << "Skipping ICU initialization in the shell."; in PerformInitializationTasks()
200 std::unique_ptr<Shell> Shell::Create( in Create()
203 Shell::CreateCallback<PlatformView> on_create_platform_view, in Create()
204 Shell::CreateCallback<Rasterizer> on_create_rasterizer) { in Create()
207 TRACE_EVENT0("flutter", "Shell::Create"); in Create()
214 return Shell::Create(std::move(task_runners), // in Create()
224 std::unique_ptr<Shell> Shell::Create( in Create()
229 Shell::CreateCallback<PlatformView> on_create_platform_view, in Create()
230 Shell::CreateCallback<Rasterizer> on_create_rasterizer, in Create()
234 TRACE_EVENT0("flutter", "Shell::CreateWithSnapshots"); in Create()
242 std::unique_ptr<Shell> shell; in Create() local
247 &shell, // in Create()
255 shell = CreateShellOnPlatformThread(std::move(vm), in Create()
266 return shell; in Create()
269 Shell::Shell(DartVMRef vm, TaskRunners task_runners, Settings settings) in Shell() function in flutter::Shell
274 FML_CHECK(vm_) << "Must have access to VM to create a shell."; in Shell()
282 std::bind(&Shell::OnServiceProtocolScreenshot, this, in Shell()
286 std::bind(&Shell::OnServiceProtocolScreenshotSKP, this, in Shell()
290 std::bind(&Shell::OnServiceProtocolRunInView, this, std::placeholders::_1, in Shell()
295 std::bind(&Shell::OnServiceProtocolFlushUIThreadTasks, this, in Shell()
300 std::bind(&Shell::OnServiceProtocolSetAssetBundlePath, this, in Shell()
305 std::bind(&Shell::OnServiceProtocolGetDisplayRefreshRate, this, in Shell()
309 Shell::~Shell() { in ~Shell()
361 void Shell::NotifyLowMemoryWarning() const { in NotifyLowMemoryWarning()
372 void Shell::RunEngine(RunConfiguration run_configuration) { in RunEngine()
376 void Shell::RunEngine(RunConfiguration run_configuration, in RunEngine()
411 std::optional<DartErrorCode> Shell::GetUIIsolateLastError() const { in GetUIIsolateLastError()
433 bool Shell::EngineHasLivePorts() const { in EngineHasLivePorts()
445 bool Shell::IsSetup() const { in IsSetup()
449 bool Shell::Setup(std::unique_ptr<PlatformView> platform_view, in Setup()
485 const Settings& Shell::GetSettings() const { in GetSettings()
489 const TaskRunners& Shell::GetTaskRunners() const { in GetTaskRunners()
493 fml::WeakPtr<Rasterizer> Shell::GetRasterizer() { in GetRasterizer()
501 fml::WeakPtr<Engine> Shell::GetEngine() { in GetEngine()
507 fml::WeakPtr<PlatformView> Shell::GetPlatformView() { in GetPlatformView()
512 DartVM* Shell::GetDartVM() { in GetDartVM()
517 void Shell::OnPlatformViewCreated(std::unique_ptr<Surface> surface) { in OnPlatformViewCreated()
518 TRACE_EVENT0("flutter", "Shell::OnPlatformViewCreated"); in OnPlatformViewCreated()
605 void Shell::OnPlatformViewDestroyed() { in OnPlatformViewDestroyed()
606 TRACE_EVENT0("flutter", "Shell::OnPlatformViewDestroyed"); in OnPlatformViewDestroyed()
679 void Shell::OnPlatformViewSetViewportMetrics(const ViewportMetrics& metrics) { in OnPlatformViewSetViewportMetrics()
702 void Shell::OnPlatformViewDispatchPlatformMessage( in OnPlatformViewDispatchPlatformMessage()
716 void Shell::OnPlatformViewDispatchPointerDataPacket( in OnPlatformViewDispatchPointerDataPacket()
718 TRACE_EVENT0("flutter", "Shell::OnPlatformViewDispatchPointerDataPacket"); in OnPlatformViewDispatchPointerDataPacket()
733 void Shell::OnPlatformViewDispatchSemanticsAction(int32_t id, in OnPlatformViewDispatchSemanticsAction()
748 void Shell::OnPlatformViewSetSemanticsEnabled(bool enabled) { in OnPlatformViewSetSemanticsEnabled()
761 void Shell::OnPlatformViewSetAccessibilityFeatures(int32_t flags) { in OnPlatformViewSetAccessibilityFeatures()
774 void Shell::OnPlatformViewRegisterTexture( in OnPlatformViewRegisterTexture()
790 void Shell::OnPlatformViewUnregisterTexture(int64_t texture_id) { in OnPlatformViewUnregisterTexture()
805 void Shell::OnPlatformViewMarkTextureFrameAvailable(int64_t texture_id) { in OnPlatformViewMarkTextureFrameAvailable()
836 void Shell::OnPlatformViewSetNextFrameCallback(fml::closure closure) { in OnPlatformViewSetNextFrameCallback()
849 void Shell::OnAnimatorBeginFrame(fml::TimePoint frame_time) { in OnAnimatorBeginFrame()
859 void Shell::OnAnimatorNotifyIdle(int64_t deadline) { in OnAnimatorNotifyIdle()
869 void Shell::OnAnimatorDraw(fml::RefPtr<Pipeline<flutter::LayerTree>> pipeline) { in OnAnimatorDraw()
889 void Shell::OnAnimatorDrawLastLayerTree() { in OnAnimatorDrawLastLayerTree()
901 void Shell::OnEngineUpdateSemantics(SemanticsNodeUpdates update, in OnEngineUpdateSemantics()
916 void Shell::OnEngineHandlePlatformMessage( in OnEngineHandlePlatformMessage()
934 void Shell::HandleEngineSkiaMessage(fml::RefPtr<PlatformMessage> message) { in HandleEngineSkiaMessage()
963 void Shell::OnPreEngineRestart() { in OnPreEngineRestart()
982 void Shell::UpdateIsolateDescription(const std::string isolate_name, in UpdateIsolateDescription()
988 void Shell::SetNeedsReportTimings(bool value) { in SetNeedsReportTimings()
992 void Shell::ReportTimings() { in ReportTimings()
1005 size_t Shell::UnreportedFramesCount() const { in UnreportedFramesCount()
1012 void Shell::OnFrameRasterized(const FrameTiming& timing) { in OnFrameRasterized()
1072 fml::RefPtr<fml::TaskRunner> Shell::GetServiceProtocolHandlerTaskRunner( in GetServiceProtocolHandlerTaskRunner()
1083 bool Shell::HandleServiceProtocolMessage( in HandleServiceProtocolMessage()
1095 ServiceProtocol::Handler::Description Shell::GetServiceProtocolDescription() in GetServiceProtocolDescription()
1127 bool Shell::OnServiceProtocolScreenshot( in OnServiceProtocolScreenshot()
1148 bool Shell::OnServiceProtocolScreenshotSKP( in OnServiceProtocolScreenshotSKP()
1169 bool Shell::OnServiceProtocolRunInView( in OnServiceProtocolRunInView()
1237 bool Shell::OnServiceProtocolFlushUIThreadTasks( in OnServiceProtocolFlushUIThreadTasks()
1252 bool Shell::OnServiceProtocolGetDisplayRefreshRate( in OnServiceProtocolGetDisplayRefreshRate()
1263 bool Shell::OnServiceProtocolSetAssetBundlePath( in OnServiceProtocolSetAssetBundlePath()
1300 Rasterizer::Screenshot Shell::Screenshot( in Screenshot()
1303 TRACE_EVENT0("flutter", "Shell::Screenshot"); in Screenshot()
1323 fml::Status Shell::WaitForFirstFrame(fml::TimeDelta timeout) { in WaitForFirstFrame()