Searched refs:dart_state (Results 1 – 9 of 9) sorted by relevance
44 auto dart_state = closure.dart_state().lock(); in InvokeDartClosure() local45 if (!dart_state) { in InvokeDartClosure()49 tonic::DartState::Scope scope(dart_state); in InvokeDartClosure()59 auto dart_state = function.dart_state().lock(); in InvokeDartFunction() local60 if (!dart_state) { in InvokeDartFunction()64 tonic::DartState::Scope scope(dart_state); in InvokeDartFunction()138 auto dart_state = UIDartState::Current(); in SceneHost() local142 view_connected_callback_.Set(dart_state, viewConnectedCallback); in SceneHost()145 view_disconnected_callback_.Set(dart_state, viewDisconnectedCallback); in SceneHost()148 view_state_changed_callback_.Set(dart_state, viewStateChangedCallback); in SceneHost()
66 std::shared_ptr<tonic::DartState> dart_state = in Complete() local67 callback.dart_state().lock(); in Complete()68 if (!dart_state) in Complete()70 tonic::DartState::Scope scope(dart_state); in Complete()84 std::shared_ptr<tonic::DartState> dart_state = in CompleteEmpty() local85 callback.dart_state().lock(); in CompleteEmpty()86 if (!dart_state) in CompleteEmpty()88 tonic::DartState::Scope scope(dart_state); in CompleteEmpty()
25 std::shared_ptr<tonic::DartState> dart_state = callback->dart_state().lock(); in InvokeNextFrameCallback() local26 if (!dart_state) { in InvokeNextFrameCallback()31 tonic::DartState::Scope scope(dart_state); in InvokeNextFrameCallback()162 auto* dart_state = UIDartState::Current(); in getNextFrame() local164 const auto& task_runners = dart_state->GetTaskRunners(); in getNextFrame()171 context = dart_state->GetResourceContext()]() mutable { in getNextFrame()
36 auto dart_state = UIDartState::Current(); in getNextFrame() local38 pending_callbacks_.emplace_back(dart_state, callback_handle); in getNextFrame()46 auto decoder = dart_state->GetImageDecoder(); in getNextFrame()63 auto state = codec->pending_callbacks_.front().dart_state().lock(); in getNextFrame()
75 auto dart_state = tonic::DartState::Current(); in Initialize() local77 new tonic::DartClassProvider(dart_state, "dart:zircon")); in Initialize()78 dart_state->class_library().add_provider("zircon", in Initialize()
121 auto state = callback.dart_state().lock(); in ScheduleCallback()
114 auto dart_state = tonic::DartState::Current(); in Initialize() local116 new tonic::DartClassProvider(dart_state, "dart:fuchsia")); in Initialize()117 dart_state->class_library().add_provider("fuchsia", in Initialize()
429 auto dart_state = tonic::DartState::Current(); in Main() local430 if (!dart_state->has_set_return_code()) { in Main()475 auto dart_state = tonic::DartState::Current(); in MessageEpilogue() local479 if (dart_state->has_set_return_code()) { in MessageEpilogue()
22457 FILE: ../../../third_party/tonic/dart_state.cc22458 FILE: ../../../third_party/tonic/dart_state.h