/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | gl_raii.h | 32 if (mHandle) in ~GLWrapper() 34 (*mDeleteFunc)(1, &mHandle); in ~GLWrapper() 41 : mGenFunc(rht.mGenFunc), mDeleteFunc(rht.mDeleteFunc), mHandle(rht.mHandle) in GLWrapper() 43 rht.mHandle = 0u; in GLWrapper() 51 std::swap(mHandle, rht.mHandle); 58 if (mHandle != 0u) in reset() 60 (*mDeleteFunc)(1, &mHandle); in reset() 61 mHandle = 0u; in reset() 67 if (!mHandle) in get() 69 (*mGenFunc)(1, &mHandle); in get() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | vk_wrapper.h | 101 HandleT getHandle() const { return mHandle; } 102 void setHandle(HandleT handle) { mHandle = handle; } 103 bool valid() const { return (mHandle != VK_NULL_HANDLE); } 105 const HandleT *ptr() const { return &mHandle; } 109 HandleT handle = mHandle; 110 mHandle = VK_NULL_HANDLE; 115 WrappedObject() : mHandle(VK_NULL_HANDLE) {} 118 WrappedObject(WrappedObject &&other) : mHandle(other.mHandle) 120 other.mHandle = VK_NULL_HANDLE; 127 std::swap(mHandle, other.mHandle); [all …]
|
D | vk_utils.cpp | 800 GarbageObject::GarbageObject() : mHandleType(HandleType::Invalid), mHandle(VK_NULL_HANDLE) {} in GarbageObject() 803 : mHandleType(handleType), mHandle(handle) in GarbageObject() 813 std::swap(mHandle, rhs.mHandle); in operator =() 828 vkDestroySemaphore(device, (VkSemaphore)mHandle, nullptr); in destroy() 835 vkDestroyEvent(device, (VkEvent)mHandle, nullptr); in destroy() 838 vkDestroyFence(device, (VkFence)mHandle, nullptr); in destroy() 841 vkFreeMemory(device, (VkDeviceMemory)mHandle, nullptr); in destroy() 844 vkDestroyBuffer(device, (VkBuffer)mHandle, nullptr); in destroy() 847 vkDestroyBufferView(device, (VkBufferView)mHandle, nullptr); in destroy() 850 vkDestroyImage(device, (VkImage)mHandle, nullptr); in destroy() [all …]
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | DynamicLib.cpp | 35 std::swap(mHandle, other.mHandle); in DynamicLib() 39 std::swap(mHandle, other.mHandle); in operator =() 44 return mHandle != nullptr; in Valid() 50 mHandle = LoadPackagedLibrary(UTF8ToWStr(filename.c_str()).c_str(), 0); in Open() 52 mHandle = LoadLibraryA(filename.c_str()); in Open() 54 if (mHandle == nullptr && error != nullptr) { in Open() 58 mHandle = dlopen(filename.c_str(), RTLD_NOW); in Open() 60 if (mHandle == nullptr && error != nullptr) { in Open() 67 return mHandle != nullptr; in Open() 71 if (mHandle == nullptr) { in Close() [all …]
|
D | vulkan_platform.h | 97 return mHandle == other.mHandle; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 100 return mHandle != other.mHandle; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 105 return mHandle == 0; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 108 return mHandle != 0; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 117 return mHandle; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 121 return mHandle; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 129 explicit VkHandle(HandleType handle) : mHandle(handle) { in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 132 HandleType mHandle = 0; in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() local
|
/third_party/skia/third_party/externals/dawn/generator/templates/ |
D | api_cpp.h | 71 ObjectBase(CType handle): mHandle(handle) { 72 if (mHandle) Derived::{{c_prefix}}Reference(mHandle); 75 if (mHandle) Derived::{{c_prefix}}Release(mHandle); 83 if (mHandle) Derived::{{c_prefix}}Release(mHandle); 84 mHandle = other.mHandle; 85 if (mHandle) Derived::{{c_prefix}}Reference(mHandle); 92 mHandle = other.mHandle; 93 other.mHandle = 0; 97 if (mHandle) Derived::{{c_prefix}}Release(mHandle); 98 mHandle = other.mHandle; [all …]
|
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/ |
D | SystemInfo_libpci.cpp | 37 mHandle = dlopen("libpci.so.3", RTLD_LAZY); in LibPCI() 39 if (mHandle == nullptr) in LibPCI() 41 mHandle = dlopen("libpci.so", RTLD_LAZY); in LibPCI() 44 if (mHandle == nullptr) in LibPCI() 50 (Alloc = reinterpret_cast<decltype(Alloc)>(dlsym(mHandle, "pci_alloc"))) != nullptr && in LibPCI() 51 (Init = reinterpret_cast<decltype(Init)>(dlsym(mHandle, "pci_init"))) != nullptr && in LibPCI() 52 (Cleanup = reinterpret_cast<decltype(Cleanup)>(dlsym(mHandle, "pci_cleanup"))) != in LibPCI() 54 (ScanBus = reinterpret_cast<decltype(ScanBus)>(dlsym(mHandle, "pci_scan_bus"))) != in LibPCI() 56 (FillInfo = reinterpret_cast<decltype(FillInfo)>(dlsym(mHandle, "pci_fill_info"))) != in LibPCI() 59 dlsym(mHandle, "pci_lookup_name"))) != nullptr && in LibPCI() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | PipelineLayoutVk.cpp | 57 device->fn.CreatePipelineLayout(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize() 69 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 70 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 71 mHandle = VK_NULL_HANDLE; in DestroyImpl() 76 return mHandle; in GetHandle() 81 reinterpret_cast<uint64_t&>(mHandle), "Dawn_PipelineLayout", GetLabel()); in SetLabelImpl()
|
D | QuerySetVk.cpp | 90 device->fn.CreateQueryPool(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize() 99 return mHandle; in GetHandle() 106 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 107 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 108 mHandle = VK_NULL_HANDLE; in DestroyImpl() 114 reinterpret_cast<uint64_t&>(mHandle), "Dawn_QuerySet", GetLabel()); in SetLabelImpl()
|
D | ComputePipelineVk.cpp | 79 &createInfo, nullptr, &*mHandle), in Initialize() 89 reinterpret_cast<uint64_t&>(mHandle), "Dawn_ComputePipeline", GetLabel()); in SetLabelImpl() 97 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 98 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 99 mHandle = VK_NULL_HANDLE; in DestroyImpl() 104 return mHandle; in GetHandle()
|
D | SamplerVk.cpp | 104 device->fn.CreateSampler(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize() 116 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 117 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 118 mHandle = VK_NULL_HANDLE; in DestroyImpl() 123 return mHandle; in GetHandle() 128 reinterpret_cast<uint64_t&>(mHandle), "Dawn_Sampler", GetLabel()); in SetLabelImpl()
|
D | BufferVk.cpp | 194 device->fn.CreateBuffer(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize() 199 device->fn.GetBufferMemoryRequirements(device->GetVkDevice(), mHandle, &requirements); in Initialize() 210 device->fn.BindBufferMemory(device->GetVkDevice(), mHandle, in Initialize() 242 return mHandle; in GetHandle() 286 barrier->buffer = mHandle; in TransitionUsageAndGetResourceBarrier() 337 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 338 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 339 mHandle = VK_NULL_HANDLE; in DestroyImpl() 385 reinterpret_cast<uint64_t&>(mHandle), "Dawn_Buffer", GetLabel()); in SetLabelImpl() 410 device->fn.CmdFillBuffer(recordingContext->commandBuffer, mHandle, offset, size, in ClearBuffer()
|
D | BindGroupLayoutVk.cpp | 123 device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in Initialize() 168 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 169 device->fn.DestroyDescriptorSetLayout(device->GetVkDevice(), mHandle, nullptr); in DestroyImpl() 170 mHandle = VK_NULL_HANDLE; in DestroyImpl() 176 return mHandle; in GetHandle() 197 reinterpret_cast<uint64_t&>(mHandle), "Dawn_BindGroupLayout", GetLabel()); in SetLabelImpl()
|
D | TextureVk.cpp | 665 device->fn.CreateImage(device->GetVkDevice(), &createInfo, nullptr, &*mHandle), in InitializeAsInternalTexture() 670 device->fn.GetImageMemoryRequirements(device->GetVkDevice(), mHandle, &requirements); in InitializeAsInternalTexture() 676 device->fn.BindImageMemory(device->GetVkDevice(), mHandle, in InitializeAsInternalTexture() 720 DAWN_TRY_ASSIGN(mHandle, externalMemoryService->CreateImage(descriptor, baseCreateInfo)); in InitializeFromExternal() 728 mHandle = nativeImage; in InitializeForSwapChain() 738 device->fn.BindImageMemory(device->GetVkDevice(), mHandle, externalMemoryAllocation, 0), in BindExternalMemory() 833 reinterpret_cast<uint64_t&>(mHandle), prefix, GetLabel()); in SetLabelHelper() 848 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 849 device->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 856 mHandle = VK_NULL_HANDLE; in DestroyImpl() [all …]
|
D | RenderPipelineVk.cpp | 549 &createInfo, nullptr, &*mHandle), in Initialize() 559 reinterpret_cast<uint64_t&>(mHandle), "Dawn_RenderPipeline", GetLabel()); in SetLabelImpl() 608 if (mHandle != VK_NULL_HANDLE) { in DestroyImpl() 609 ToBackend(GetDevice())->GetFencedDeleter()->DeleteWhenUnused(mHandle); in DestroyImpl() 610 mHandle = VK_NULL_HANDLE; in DestroyImpl() 615 return mHandle; in GetHandle()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | Compiler.cpp | 339 ShCompilerInstance::ShCompilerInstance() : mHandle(nullptr) {} in ShCompilerInstance() 344 : mHandle(handle), mOutputType(outputType), mShaderType(shaderType) in ShCompilerInstance() 349 ASSERT(mHandle == nullptr); in ~ShCompilerInstance() 354 if (mHandle != nullptr) in destroy() 356 sh::Destruct(mHandle); in destroy() 357 mHandle = nullptr; in destroy() 362 : mHandle(other.mHandle), mOutputType(other.mOutputType), mShaderType(other.mShaderType) in ShCompilerInstance() 364 other.mHandle = nullptr; in ShCompilerInstance() 369 mHandle = other.mHandle; in operator =() 372 other.mHandle = nullptr; in operator =() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
D | Tokenizer.l | 315 Tokenizer::Tokenizer(Diagnostics *diagnostics) : mHandle(nullptr), mMaxTokenSize(1024) 338 yyset_column(file, mHandle); 343 yyset_lineno(line, mHandle); 353 int tokenType = yylex(&token->text, &token->location, mHandle); 383 if ((mHandle == nullptr) && yylex_init_extra(&mContext, &mHandle)) 386 yyrestart(0, mHandle); 392 if (mHandle == nullptr) 395 yylex_destroy(mHandle); 396 mHandle = nullptr;
|
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | preprocessor.l | 317 Tokenizer::Tokenizer(Diagnostics *diagnostics) : mHandle(nullptr), mMaxTokenSize(256) 340 yyset_column(file, mHandle); 345 yyset_lineno(line, mHandle); 355 int tokenType = yylex(&token->text, &token->location, mHandle); 385 if ((mHandle == nullptr) && yylex_init_extra(&mContext, &mHandle)) 388 yyrestart(0, mHandle); 394 if (mHandle == nullptr) 397 yylex_destroy(mHandle); 398 mHandle = nullptr;
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | TextureGL.cpp | 141 gl.BindTexture(mTarget, mHandle); in Texture() 186 : TextureBase(device, descriptor, state), mHandle(handle) { in Texture() 196 ToBackend(GetDevice())->gl.DeleteTextures(1, &mHandle); in DestroyImpl() 197 mHandle = 0; in DestroyImpl() 202 return mHandle; in GetHandle() 364 gl.ClearTexSubImage(mHandle, static_cast<GLint>(level), 0, 0, in ClearTexture() 544 mHandle = 0; in TextureView() 546 mHandle = ToBackend(texture)->GetHandle(); in TextureView() 551 mHandle = GenTexture(gl); in TextureView() 554 gl.TextureView(mHandle, mTarget, textureGL->GetHandle(), glFormat.internalFormat, in TextureView() [all …]
|
D | TextureGL.h | 47 GLuint mHandle; variable 62 GLuint mHandle; variable
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
D | ShaderImpl.cpp | 45 : mHandle(handle), mOptions(options), mSource(source), mResult(false) in TranslateTask() 52 mResult = sh::Compile(mHandle, &source, 1, mOptions); in operator ()() 57 ShHandle getHandle() { return mHandle; } in getHandle() 60 ShHandle mHandle; member in rx::TranslateTask
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | PlatformFunctions.cpp | 55 explicit ScopedFileHandle(HANDLE handle) : mHandle(handle) { in ScopedFileHandle() 58 if (mHandle != INVALID_HANDLE_VALUE) { in ~ScopedFileHandle() 59 ASSERT(FindClose(mHandle)); in ~ScopedFileHandle() 63 return mHandle; in GetHandle() 67 HANDLE mHandle; member in dawn_native::d3d12::__anon2289466f0111::ScopedFileHandle
|
/third_party/glfw/deps/ |
D | tinycthread.c | 61 InitializeCriticalSection(&mtx->mHandle); in mtx_init() 80 DeleteCriticalSection(&mtx->mHandle); in mtx_destroy() 89 EnterCriticalSection(&mtx->mHandle); in mtx_lock() 112 int ret = TryEnterCriticalSection(&mtx->mHandle) ? thrd_success : thrd_busy; in mtx_trylock() 115 LeaveCriticalSection(&mtx->mHandle); in mtx_trylock() 128 LeaveCriticalSection(&mtx->mHandle); in mtx_unlock()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | ShaderGL.cpp | 32 : mHandle(handle), in TranslateTaskGL() 44 mResult = sh::Compile(mHandle, &source, 1, mOptions); in operator ()() 48 mCompileAndCheckShaderInWorkerFunctor(sh::GetObjectCode(mHandle).c_str()); in operator ()() 56 ShHandle getHandle() { return mHandle; } in getHandle() 59 ShHandle mHandle; member in rx::TranslateTaskGL
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | ShaderMtl.mm | 31 : mHandle(handle), mOptions(options), mSource(source), mResult(false) 37 mResult = sh::Compile(mHandle, &source, 1, mOptions); 42 ShHandle getHandle() { return mHandle; } 45 ShHandle mHandle;
|