/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart_runner/ |
D | builtin_libraries.cc | 21 using tonic::ToDart; 90 if (tonic::LogIfError(closure) || !Dart_IsClosure(closure)) in ScheduleMicrotask() 92 tonic::DartMicrotaskQueue::GetForCurrentThread()->ScheduleMicrotask(closure); in ScheduleMicrotask() 114 FML_CHECK(!tonic::LogIfError(builtin_lib)); in InitBuiltinLibrariesForIsolate() 117 FML_CHECK(!tonic::LogIfError(result)); in InitBuiltinLibrariesForIsolate() 122 FML_CHECK(!tonic::LogIfError(io_lib)); in InitBuiltinLibrariesForIsolate() 125 FML_CHECK(!tonic::LogIfError(result)); in InitBuiltinLibrariesForIsolate() 130 FML_CHECK(!tonic::LogIfError(zircon_lib)); in InitBuiltinLibrariesForIsolate() 136 FML_CHECK(!tonic::LogIfError(async_lib)); in InitBuiltinLibrariesForIsolate() 139 FML_CHECK(!tonic::LogIfError(core_lib)); in InitBuiltinLibrariesForIsolate() [all …]
|
D | dart_component_controller.cc | 39 using tonic::ToDart; 48 tonic::DartMicrotaskQueue* queue = in AfterTask() 49 tonic::DartMicrotaskQueue::GetForCurrentThread(); in AfterTask() 323 auto state = new std::shared_ptr<tonic::DartState>(new tonic::DartState( in CreateIsolate() 338 tonic::DartMessageHandler::TaskDispatcher dispatcher = in CreateIsolate() 363 tonic::DartMicrotaskQueue::StartForCurrentThread(); in Main() 418 tonic::LogIfError( in Main() 429 auto dart_state = tonic::DartState::Current(); in Main() 433 return_code_ = tonic::GetErrorExitCode(main_result); in Main() 448 tonic::DartMicrotaskQueue::GetForCurrentThread()->Destroy(); in Kill() [all …]
|
D | service_isolate.cc | 26 tonic::DartLibraryNatives* service_natives = nullptr; 125 auto state = new std::shared_ptr<tonic::DartState>(new tonic::DartState()); in CreateServiceIsolate() 140 service_natives = new tonic::DartLibraryNatives(); in CreateServiceIsolate() 208 return tonic::DartConverter<tonic::Uint8List>::ToDart( in GetVMServiceAssetsArchiveCallback()
|
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/ |
D | isolate_configurator.cc | 50 Dart_Handle zircon_lib = Dart_LookupLibrary(tonic::ToDart("dart:zircon")); in BindZircon() 51 FML_CHECK(!tonic::LogIfError(zircon_lib)); in BindZircon() 54 Dart_GetType(zircon_lib, tonic::ToDart("_Namespace"), 0, nullptr); in BindZircon() 55 FML_CHECK(!tonic::LogIfError(namespace_type)); in BindZircon() 59 tonic::ToDart("_namespace"), // in BindZircon() 60 tonic::ToDart(reinterpret_cast<intptr_t>(fdio_ns_.get()))); in BindZircon() 61 FML_CHECK(!tonic::LogIfError(result)); in BindZircon() 66 Dart_Handle io_lib = Dart_LookupLibrary(tonic::ToDart("dart:io")); in BindDartIO() 67 FML_CHECK(!tonic::LogIfError(io_lib)); in BindDartIO() 71 Dart_GetType(io_lib, tonic::ToDart("_EmbedderConfig"), 0, nullptr); in BindDartIO() [all …]
|
/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | gradient.h | 13 namespace tonic { 35 void initLinear(const tonic::Float32List& end_points, 36 const tonic::Int32List& colors, 37 const tonic::Float32List& color_stops, 39 const tonic::Float64List& matrix4); 44 const tonic::Int32List& colors, 45 const tonic::Float32List& color_stops, 47 const tonic::Float64List& matrix4); 51 const tonic::Int32List& colors, 52 const tonic::Float32List& color_stops, [all …]
|
D | codec.cc | 23 using tonic::DartInvoke; 24 using tonic::DartPersistentValue; 25 using tonic::ToDart; 109 tonic::DartConverter<int>::FromDart(format_handle)); in ConvertImageInfo() 123 int width = tonic::DartConverter<int>::FromDart(width_handle); in ConvertImageInfo() 127 int height = tonic::DartConverter<int>::FromDart(height_handle); in ConvertImageInfo() 136 tonic::DartConverter<size_t>::FromDart(row_bytes_handle); in ConvertImageInfo() 148 Dart_SetReturnValue(args, tonic::ToDart("Callback must be a function")); in InstantiateImageCodec() 162 Dart_SetReturnValue(args, tonic::ToDart(*error)); in InstantiateImageCodec() 171 tonic::Uint8List list = in InstantiateImageCodec() [all …]
|
D | gradient.cc | 28 void CanvasGradient::RegisterNatives(tonic::DartLibraryNatives* natives) { in FOR_EACH_BINDING() 35 void CanvasGradient::initLinear(const tonic::Float32List& end_points, in initLinear() 36 const tonic::Int32List& colors, in initLinear() 37 const tonic::Float32List& color_stops, in initLinear() 39 const tonic::Float64List& matrix4) { in initLinear() 64 const tonic::Int32List& colors, in initRadial() 65 const tonic::Float32List& color_stops, in initRadial() 67 const tonic::Float64List& matrix4) { in initRadial() 88 const tonic::Int32List& colors, in initSweep() 89 const tonic::Float32List& color_stops, in initSweep() [all …]
|
D | vertices.h | 11 namespace tonic { 24 static void RegisterNatives(tonic::DartLibraryNatives* natives); 29 const tonic::Float32List& positions, 30 const tonic::Float32List& texture_coordinates, 31 const tonic::Int32List& colors, 32 const tonic::Uint16List& indices);
|
D | vertices.cc | 13 void DecodePoints(const tonic::Float32List& coords, SkPoint* points) { in DecodePoints() 19 void DecodeInts(const tonic::Int32List& ints, T* out) { in DecodeInts() 36 void Vertices::RegisterNatives(tonic::DartLibraryNatives* natives) { in RegisterNatives() 44 const tonic::Float32List& positions, in init() 45 const tonic::Float32List& texture_coordinates, in init() 46 const tonic::Int32List& colors, in init() 47 const tonic::Uint16List& indices) { in init()
|
D | single_frame_codec.cc | 27 return tonic::ToDart("Callback must be a function"); in getNextFrame() 31 tonic::DartInvoke(callback_handle, {tonic::ToDart(cached_frame_)}); in getNextFrame() 49 return tonic::ToDart("Image decoder not available."); in getNextFrame() 72 tonic::DartState::Scope scope(state.get()); in getNextFrame() 87 Dart_Handle frame = tonic::ToDart(codec->cached_frame_); in getNextFrame() 89 tonic::DartInvoke(callback.value(), {frame}); in getNextFrame()
|
D | path.h | 13 namespace tonic { 82 void addPolygon(const tonic::Float32List& points, bool close); 88 tonic::Float64List& matrix4); 93 tonic::Float64List& matrix4); 98 fml::RefPtr<CanvasPath> transform(tonic::Float64List& matrix4); 99 tonic::Float32List getBounds(); 105 static void RegisterNatives(tonic::DartLibraryNatives* natives);
|
D | canvas.h | 18 namespace tonic { 145 const tonic::Float32List& points); 155 const tonic::Float32List& transforms, 156 const tonic::Float32List& rects, 157 const tonic::Int32List& colors, 159 const tonic::Float32List& cull_rect); 170 static void RegisterNatives(tonic::DartLibraryNatives* natives);
|
D | color_filter.h | 11 using tonic::DartPersistentValue; 13 namespace tonic { 35 void initMatrix(const tonic::Float32List& color_matrix); 43 static void RegisterNatives(tonic::DartLibraryNatives* natives);
|
/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart-pkg/fuchsia/sdk_ext/ |
D | fuchsia.cc | 28 using tonic::ToDart; 34 static tonic::DartLibraryNatives* g_natives; 36 tonic::DartLibraryNatives* InitNatives() { in InitNatives() 37 tonic::DartLibraryNatives* natives = new tonic::DartLibraryNatives(); in InitNatives() 97 if (!tonic::LogIfError(status)) { in SetReturnCode() 98 tonic::DartState::Current()->SetReturnCode(return_code); in SetReturnCode() 109 FML_CHECK(!tonic::LogIfError(library)); in Initialize() 112 FML_CHECK(!tonic::LogIfError(result)); in Initialize() 114 auto dart_state = tonic::DartState::Current(); in Initialize() 115 std::unique_ptr<tonic::DartClassProvider> fuchsia_class_provider( in Initialize() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart-pkg/zircon/sdk_ext/ |
D | natives.cc | 27 using tonic::ToDart; 33 static tonic::DartLibraryNatives* g_natives; 35 tonic::DartLibraryNatives* InitNatives() { in InitNatives() 36 tonic::DartLibraryNatives* natives = new tonic::DartLibraryNatives(); in InitNatives() 70 FML_CHECK(!tonic::LogIfError(library)); in Initialize() 73 FML_CHECK(!tonic::LogIfError(result)); in Initialize() 75 auto dart_state = tonic::DartState::Current(); in Initialize() 76 std::unique_ptr<tonic::DartClassProvider> zircon_class_provider( in Initialize() 77 new tonic::DartClassProvider(dart_state, "dart:zircon")); in Initialize()
|
D | handle.cc | 12 using tonic::ToDart; 20 tonic::DartState* state = tonic::DartState::Current(); in Handle() 23 FML_DCHECK(!tonic::LogIfError(zircon_lib)); in Handle() 27 FML_DCHECK(!tonic::LogIfError(on_wait_completer_type)); in Handle() 31 FML_DCHECK(!tonic::LogIfError(async_lib)); in Handle() 35 FML_DCHECK(!tonic::LogIfError(closure_string)); in Handle() 39 FML_DCHECK(!tonic::LogIfError(schedule_microtask_string)); in Handle() 118 void Handle::ScheduleCallback(tonic::DartPersistentValue callback, in ScheduleCallback() 123 tonic::DartState::Scope scope(state); in ScheduleCallback() 132 FML_DCHECK(!tonic::LogIfError(on_wait_complete_closure)); in ScheduleCallback() [all …]
|
D | handle.h | 26 public tonic::DartWrappable { 34 static void RegisterNatives(tonic::DartLibraryNatives* natives); 43 tonic::DartConverter<zircon::dart::Handle*>::FromDart(handle)); in Unwrap() 63 void ScheduleCallback(tonic::DartPersistentValue callback, 80 tonic::DartPersistentValue async_lib_; 81 tonic::DartPersistentValue closure_string_; 82 tonic::DartPersistentValue on_wait_completer_type_; 83 tonic::DartPersistentValue schedule_microtask_string_;
|
D | system.cc | 29 using tonic::ToDart; 52 FML_DCHECK(!tonic::LogIfError(dart_handle_)); in ByteDataScope() 71 tonic::LogIfError(result); in Release() 88 !tonic::LogIfError(result) && type == Dart_TypedData_kByteData && data_; in Acquire() 103 tonic::DartClassLibrary& class_library = in MakeHandleList() 104 tonic::DartState::Current()->class_library(); in MakeHandleList() 120 tonic::DartClassLibrary& class_library = in ConstructDartObject() 121 tonic::DartState::Current()->class_library(); in ConstructDartObject() 124 FML_DCHECK(!tonic::LogIfError(type)); in ConstructDartObject() 133 FML_DCHECK(!tonic::LogIfError(object)); in ConstructDartObject() [all …]
|
D | system.h | 29 public tonic::DartWrappable { 38 const tonic::DartByteData& data, 47 const tonic::DartByteData& data, 57 const tonic::DartByteData& data); 66 static void RegisterNatives(tonic::DartLibraryNatives* natives);
|
/third_party/flutter/engine/flutter/runtime/ |
D | dart_isolate.cc | 169 tonic::DartIsolateScope scope(isolate()); in Initialize() 174 if (tonic::LogIfError( in Initialize() 175 Dart_SetLibraryTagHandler(tonic::DartState::HandleLibraryTag))) { in Initialize() 249 tonic::DartState::Scope scope(this); in LoadLibraries() 262 "ui", std::make_unique<tonic::DartClassProvider>(this, "dart:ui")); in LoadLibraries() 275 tonic::DartState::Scope scope(this); in PrepareForRunningFromPrecompiledCode() 308 if (tonic::LogIfError(library)) { in LoadKernel() 318 if (tonic::LogIfError(Dart_FinalizeLoading(false))) { in LoadKernel() 341 tonic::DartState::Scope scope(this); in PrepareForRunningFromKernel() 447 if (tonic::LogIfError(user_entrypoint_function)) { in InvokeMainEntrypoint() [all …]
|
/third_party/flutter/engine/flutter/lib/ui/window/ |
D | platform_message_response_dart.cc | 47 tonic::DartPersistentValue callback, in PlatformMessageResponseDart() 66 std::shared_ptr<tonic::DartState> dart_state = in Complete() 70 tonic::DartState::Scope scope(dart_state); in Complete() 73 tonic::DartInvoke(callback.Release(), {byte_buffer}); in Complete() 84 std::shared_ptr<tonic::DartState> dart_state = in CompleteEmpty() 88 tonic::DartState::Scope scope(dart_state); in CompleteEmpty() 89 tonic::DartInvoke(callback.Release(), {Dart_Null()}); in CompleteEmpty()
|
/third_party/flutter/engine/flutter/lib/ui/compositing/ |
D | scene_host.cc | 28 tonic::DartCallConstructor(&flutter::SceneHost::Create, args); in SceneHost_constructor() 43 void InvokeDartClosure(const tonic::DartPersistentValue& closure) { in InvokeDartClosure() 49 tonic::DartState::Scope scope(dart_state); in InvokeDartClosure() 54 tonic::DartInvoke(dart_handle, {}); in InvokeDartClosure() 58 void InvokeDartFunction(const tonic::DartPersistentValue& function, T& arg) { in InvokeDartFunction() 64 tonic::DartState::Scope scope(dart_state); in InvokeDartFunction() 69 tonic::DartInvoke(dart_handle, {tonic::ToDart(arg)}); in InvokeDartFunction() 92 void SceneHost::RegisterNatives(tonic::DartLibraryNatives* natives) { in FOR_EACH_BINDING()
|
/third_party/flutter/engine/flutter/lib/ui/semantics/ |
D | semantics_update_builder.h | 48 const tonic::Float64List& transform, 49 const tonic::Int32List& childrenInTraversalOrder, 50 const tonic::Int32List& childrenInHitTestOrder, 51 const tonic::Int32List& customAccessibilityActions); 60 static void RegisterNatives(tonic::DartLibraryNatives* natives);
|
/third_party/flutter/engine/flutter/lib/ui/text/ |
D | paragraph_builder.h | 15 namespace tonic { 29 tonic::Int32List& encoded, 40 void pushStyle(tonic::Int32List& encoded, 73 static void RegisterNatives(tonic::DartLibraryNatives* natives); 76 explicit ParagraphBuilder(tonic::Int32List& encoded,
|
/third_party/flutter/engine/flutter/lib/ui/ |
D | dart_ui.cc | 37 using tonic::ToDart; 42 static tonic::DartLibraryNatives* g_natives; 43 static tonic::DartLibraryNatives* g_natives_secondary; 70 g_natives = new tonic::DartLibraryNatives(); in InitForGlobal() 100 g_natives_secondary = new tonic::DartLibraryNatives(); in InitForGlobal()
|