/third_party/flutter/engine/flutter/vulkan/ |
D | vulkan_handle.h | 24 VulkanHandle() : handle_(VK_NULL_HANDLE) {} in VulkanHandle() 27 : handle_(handle), disposer_(disposer) {} in handle_() function 30 : handle_(other.handle_), disposer_(other.disposer_) { in VulkanHandle() 31 other.handle_ = VK_NULL_HANDLE; in VulkanHandle() 38 if (handle_ != other.handle_) { 42 handle_ = other.handle_; 45 other.handle_ = VK_NULL_HANDLE; 51 operator bool() const { return handle_ != VK_NULL_HANDLE; } 53 operator Handle() const { return handle_; } in Handle() 63 Handle handle_; [all …]
|
D | vulkan_proc_table.cc | 33 : handle_(nullptr), acquired_mandatory_proc_addresses_(false) { in VulkanProcTable() 59 if (handle_ == nullptr) { in SetupLoaderProcAddresses() 68 reinterpret_cast<PFN_vkGetInstanceProcAddr>(dlsym(handle_, "vkGetInstanceProcAddr")); in SetupLoaderProcAddresses() 69 …GetDeviceProcAddr = reinterpret_cast<PFN_vkGetDeviceProcAddr>(dlsym(handle_, "vkGetDeviceProcAddr"… in SetupLoaderProcAddresses() 71 dlsym(handle_, "vkEnumerateInstanceExtensionProperties")); in SetupLoaderProcAddresses() 72 CreateInstance = reinterpret_cast<PFN_vkCreateInstance>(dlsym(handle_, "vkCreateInstance")); in SetupLoaderProcAddresses() 80 dlsym(handle_, "vkGetInstanceProcAddr")); in SetupLoaderProcAddresses() 203 handle_ = reinterpret_cast<decltype(handle_)>(&kDummyLibraryHandle); in OpenLibraryHandle() 207 handle_ = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL); in OpenLibraryHandle() 208 if (handle_ == nullptr) { in OpenLibraryHandle() [all …]
|
D | vulkan_command_buffer.cc | 43 handle_ = {buffer, buffer_collect}; in VulkanCommandBuffer() 55 return handle_; in Handle() 66 return VK_CALL_LOG_ERROR(vk.BeginCommandBuffer(handle_, &info)) == VK_SUCCESS; in Begin() 70 return VK_CALL_LOG_ERROR(vk.EndCommandBuffer(handle_)) == VK_SUCCESS; in End() 83 vk.CmdPipelineBarrier(handle_, src_stage_flags, dest_stage_flags, in InsertPipelineBarrier()
|
D | vulkan_image.cc | 13 : handle_(std::move(image)), in VulkanImage() 17 if (!handle_) { in VulkanImage() 45 .image = handle_, in InsertImageMemoryBarrier()
|
/third_party/gn/src/base/win/ |
D | scoped_handle.h | 39 GenericScopedHandle() : handle_(Traits::NullHandle()) {} in GenericScopedHandle() 41 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) { in GenericScopedHandle() 46 : handle_(Traits::NullHandle()) { in GenericScopedHandle() 52 bool IsValid() const { return Traits::IsHandleValid(handle_); } in IsValid() 61 if (handle_ != handle) { in Set() 67 handle_ = handle; in Set() 73 Handle Get() const { return handle_; } in Get() 77 Handle temp = handle_; in Take() 78 handle_ = Traits::NullHandle(); in Take() 84 if (Traits::IsHandleValid(handle_)) { in Close() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/fuchsia/dart-pkg/zircon/sdk_ext/ |
D | handle_waiter.cc | 44 handle_(handle), in HandleWaiter() 46 FML_CHECK(handle_ != nullptr); in HandleWaiter() 47 FML_CHECK(handle_->is_valid()); in HandleWaiter() 58 FML_DCHECK(wait_.is_pending() == !!handle_); in Cancel() 59 if (handle_) { in Cancel() 64 handle_->ReleaseWaiter(this); in Cancel() 65 handle_ = nullptr; in Cancel() 74 FML_DCHECK(handle_); in OnWaitComplete() 82 handle_->ReleaseWaiter(this); in OnWaitComplete() 85 handle_->ScheduleCallback(std::move(callback_), status, signal); in OnWaitComplete() [all …]
|
D | handle.h | 50 bool is_valid() const { return handle_ != ZX_HANDLE_INVALID; } in is_valid() 52 zx_handle_t handle() const { return handle_; } in handle() 74 zx_handle_t handle_; variable
|
D | handle.cc | 19 Handle::Handle(zx_handle_t handle) : handle_(handle) { in Handle() 61 zx_handle_t handle = handle_; in ReleaseHandle() 62 handle_ = ZX_HANDLE_INVALID; in ReleaseHandle() 111 zx_status_t status = zx_handle_duplicate(handle_, rights, &out_handle); in Duplicate()
|
/third_party/flutter/engine/flutter/fml/platform/win/ |
D | native_library_win.cc | 14 : handle_(nullptr), close_handle_(true) { in NativeLibrary() 19 handle_ = ::LoadLibrary(ConvertToWString(path).c_str()); in NativeLibrary() 23 : handle_(handle), close_handle_(close_handle) {} in NativeLibrary() 26 if (handle_ != nullptr && close_handle_) { in ~NativeLibrary() 27 ::FreeLibrary(handle_); in ~NativeLibrary() 32 return handle_; in GetHandle() 53 if (symbol == nullptr || handle_ == nullptr) { in ResolveSymbol() 56 return reinterpret_cast<const uint8_t*>(::GetProcAddress(handle_, symbol)); in ResolveSymbol()
|
/third_party/flutter/engine/flutter/fml/platform/posix/ |
D | native_library_posix.cc | 14 handle_ = ::dlopen(path, RTLD_NOW); in NativeLibrary() 15 if (handle_ == nullptr) { in NativeLibrary() 22 : handle_(handle), close_handle_(close_handle) {} in NativeLibrary() 25 if (handle_ == nullptr) { in ~NativeLibrary() 31 if (::dlclose(handle_) != 0) { in ~NativeLibrary() 32 handle_ = nullptr; in ~NativeLibrary() 40 return handle_; in GetHandle() 61 auto* resolved_symbol = static_cast<const uint8_t*>(::dlsym(handle_, symbol)); in ResolveSymbol()
|
/third_party/skia/third_party/externals/tint/src/utils/io/ |
D | command_posix.cc | 35 File() : handle_(kClosed) {} in File() 38 explicit File(int handle) : handle_(handle) {} in File() 46 handle_ = rhs.handle_; in operator =() 47 rhs.handle_ = kClosed; in operator =() 53 if (handle_ != kClosed) { in Close() 54 close(handle_); in Close() 56 handle_ = kClosed; in Close() 60 operator int() { return handle_; } in operator int() 63 operator bool() { return handle_ != kClosed; } in operator bool() 69 int handle_ = kClosed; member in tint::utils::__anonec6466670111::File
|
D | command_windows.cc | 31 Handle() : handle_(nullptr) {} in Handle() 34 explicit Handle(HANDLE handle) : handle_(handle) {} in Handle() 42 handle_ = rhs.handle_; in operator =() 43 rhs.handle_ = nullptr; in operator =() 49 if (handle_) { in Close() 50 CloseHandle(handle_); in Close() 52 handle_ = nullptr; in Close() 56 operator HANDLE() { return handle_; } in operator HANDLE() 59 operator bool() { return handle_ != nullptr; } in operator bool() 65 HANDLE handle_ = nullptr; member in tint::utils::__anonca7d16bf0111::Handle
|
/third_party/cef/libcef/renderer/ |
D | v8_impl.cc | 407 handle_.Reset(isolate_, external); in CreateExternal() 408 handle_.SetWeak(this, FirstWeakCallback, v8::WeakCallbackType::kParameter); in CreateExternal() 416 wrapper->handle_.Reset(); in FirstWeakCallback() 429 v8::Persistent<v8::External> handle_; member in __anon6b278a6b0111::V8FunctionData 863 (!handle_.get() || handle_->BelongsToCurrentThread()) 871 #define CEF_V8_HANDLE_IS_VALID() (handle_.get() && handle_->IsValid()) 951 : handle_(new Handle(isolate, context, context)), enter_count_(0) {} in CefV8ContextImpl() 958 return new CefTaskRunnerImpl(handle_->task_runner()); in GetTaskRunner() 998 v8::Isolate* isolate = handle_->isolate(); in GetGlobal() 1011 v8::Isolate* isolate = handle_->isolate(); in Enter() [all …]
|
D | v8_impl.h | 138 : CefV8HandleBase(isolate, context), handle_(isolate, v) {} in CefV8Handle() 145 return handleType::New(isolate(), handle_); in GetNewV8Handle() 148 persistentType& GetPersistentV8Handle() { return handle_; } in GetPersistentV8Handle() 151 ~CefV8Handle() override { handle_.Reset(); } in ~CefV8Handle() 153 persistentType handle_; variable 189 scoped_refptr<Handle> handle_; variable 316 persistentType handle_; variable 354 scoped_refptr<Handle> handle_; variable
|
/third_party/node/src/ |
D | signal_wrap.cc | 82 reinterpret_cast<uv_handle_t*>(&handle_), in SignalWrap() 84 int r = uv_signal_init(env->event_loop(), &handle_); in SignalWrap() 90 DecreaseSignalHandlerCount(handle_.signum); in Close() 113 &wrap->handle_, in Start() 115 SignalWrap* wrap = ContainerOf(&SignalWrap::handle_, handle); in Start() 140 DecreaseSignalHandlerCount(wrap->handle_.signum); in Stop() 143 int err = uv_signal_stop(&wrap->handle_); in Stop() 147 uv_signal_t handle_; member in node::__anon992481380111::SignalWrap
|
D | udp_wrap.cc | 115 reinterpret_cast<uv_handle_t*>(&handle_), in UDPWrap() 120 int r = uv_udp_init(env->event_loop(), &handle_); in UDPWrap() 211 uv_fileno(reinterpret_cast<uv_handle_t*>(&wrap->handle_), &fd); in GetFD() 248 err = uv_udp_bind(&wrap->handle_, in DoBind() 276 err = uv_udp_connect(&wrap->handle_, in DoConnect() 291 int err = uv_udp_open(&wrap->handle_, fd); in Open() 325 uv_handle_t* handle = reinterpret_cast<uv_handle_t*>(&wrap->handle_); in BufferSize() 361 int err = uv_udp_connect(&wrap->handle_, nullptr); in Disconnect() 375 int err = wrap == nullptr ? UV_EBADF : fn(&wrap->handle_, flag); \ 399 int err = uv_udp_set_multicast_interface(&wrap->handle_, iface_cstr); in X() [all …]
|
D | node_binding.cc | 322 : filename_(filename), flags_(flags), handle_(nullptr) {} in DLib() 326 handle_ = dlopen(filename_.c_str(), flags_); in Open() 327 if (handle_ != nullptr) return true; in Open() 333 if (handle_ == nullptr) return; in Close() 344 int err = dlclose(handle_); in Close() 347 global_handle_map.erase(handle_); in Close() 349 handle_ = nullptr; in Close() 353 return dlsym(handle_, name); in GetSymbolAddress() 359 handle_ = static_cast<void*>(lib_.handle); in Open() 368 if (handle_ == nullptr) return; in Close() [all …]
|
D | pipe_wrap.cc | 147 int r = uv_pipe_init(env->event_loop(), &handle_, ipc); in PipeWrap() 157 int err = uv_pipe_bind(&wrap->handle_, *name); in Bind() 168 uv_pipe_pending_instances(&wrap->handle_, instances); in SetPendingInstances() 178 int err = uv_pipe_chmod(&wrap->handle_, mode); in Fchmod() 189 int err = uv_listen(reinterpret_cast<uv_stream_t*>(&wrap->handle_), in Listen() 205 int err = uv_pipe_open(&wrap->handle_, fd); in Open() 228 &wrap->handle_, in Connect()
|
D | fs_event_wrap.cc | 72 uv_fs_event_t handle_; member in node::__anonec88b7540111::FSEventWrap 80 reinterpret_cast<uv_handle_t*>(&handle_), in FSEventWrap() 147 int err = uv_fs_event_init(wrap->env()->event_loop(), &wrap->handle_); in Start() 152 err = uv_fs_event_start(&wrap->handle_, OnEvent, *path, flags); in Start() 162 uv_unref(reinterpret_cast<uv_handle_t*>(&wrap->handle_)); in Start()
|
D | tty_wrap.cc | 89 int err = uv_tty_get_winsize(&wrap->handle_, &width, &height); in GetWindowSize() 106 int err = uv_tty_set_mode(&wrap->handle_, args[0]->IsTrue()); in SetRawMode() 139 reinterpret_cast<uv_stream_t*>(&handle_), in TTYWrap() 141 *init_err = uv_tty_init(env->event_loop(), &handle_, fd, readable); in TTYWrap()
|
D | tcp_wrap.cc | 153 int r = uv_tcp_init(env->event_loop(), &handle_); in TCPWrap() 165 int err = uv_tcp_nodelay(&wrap->handle_, enable); in SetNoDelay() 179 int err = uv_tcp_keepalive(&wrap->handle_, enable, delay); in SetKeepAlive() 191 int err = uv_tcp_simultaneous_accepts(&wrap->handle_, enable); in SetSimultaneousAccepts() 206 int err = uv_tcp_open(&wrap->handle_, fd); in Open() 237 err = uv_tcp_bind(&wrap->handle_, in Bind() 262 int err = uv_listen(reinterpret_cast<uv_stream_t*>(&wrap->handle_), in Listen() 315 &wrap->handle_, in Connect()
|
D | node_object_wrap.h | 70 return handle_; in persistent() 122 wrap->handle_.Reset(); in WeakCallback() 127 v8::Persistent<v8::Object> handle_; variable
|
D | node_watchdog.cc | 164 reinterpret_cast<uv_handle_t*>(&handle_), in TraceSigintWatchdog() 166 int r = uv_async_init(env->event_loop(), &handle_, [](uv_async_t* handle) { in TraceSigintWatchdog() 168 ContainerOf(&TraceSigintWatchdog::handle_, handle); in TraceSigintWatchdog() 173 uv_unref(reinterpret_cast<uv_handle_t*>(&handle_)); in TraceSigintWatchdog() 181 CHECK_EQ(uv_async_send(&handle_), 0); in HandleSigint()
|
/third_party/libuv/test/ |
D | test-udp-dgram-too-big.c | 30 ASSERT((uv_udp_t*)(handle) == &handle_) 35 static uv_udp_t handle_; variable 67 r = uv_udp_init(uv_default_loop(), &handle_); in TEST_IMPL() 74 &handle_, in TEST_IMPL()
|
/third_party/node/src/inspector/ |
D | main_thread_interface.cc | 206 if (handle_) in ~MainThreadInterface() 207 handle_->Reset(); in ~MainThreadInterface() 260 if (handle_ == nullptr) in GetHandle() 261 handle_ = std::make_shared<MainThreadHandle>(this); in GetHandle() 262 return handle_; in GetHandle()
|