dawn-cmake/include/dawn/native
Austin Eng a09d05c10b Make Adapter and Instance lifetimes more robust
Previously, we would get a use-after-free if you dropped the instance
before an adapter created from it. This CL fixes up the lifetimes
such that Device refs Adapter refs Instance. Instance uses a
cycle-breaking refcount so that it releases internal refs to its
adapters when the last external ref is dropped.

Bug: none
Change-Id: I5304ec86f425247d4c45ca342fda393cc19689e3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99820
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
2022-08-20 02:22:41 +00:00
..
D3D12Backend.h d3d12: Destroy ExternalImageDXGI resources on device destruction 2022-07-13 11:33:51 +00:00
DawnNative.h Make Adapter and Instance lifetimes more robust 2022-08-20 02:22:41 +00:00
MetalBackend.h Remove unused dawn::native:🤘:GetMetalDevice 2022-07-26 16:28:45 +00:00
NullBackend.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
OpenGLBackend.h GL: implement EGL context creation in Dawn native. 2022-06-29 15:29:41 +00:00
VulkanBackend.h DAWN_PLATFORM and DAWN_COMPILER macro improvements 2022-06-08 19:52:42 +00:00
dawn_native_export.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00