fed6b6b35b
Change AdapterBase from an alias to PhysicalDeviceBase to a thin wrapper class holding a ref to a PhysicalDeviceBase. This way, mutiple AdapterBases can point at the same PhysicalDeviceBase. For now, InstanceBase wraps all PhysicalDeviceBases discovered by a backend in a single AdapterBase. In the future, this relationship will become many-to-one. Since Devices now maintain a ref on the AdapterBase wrapper (in order to query toggles, etc), PhysicalDeviceBase::CreateDeviceImpl() now takes the AdapterBase as an argument, so that the PhysicalDeviceBase knows which AdapterBase to vend a Device for. Note that the Toggles also still remain on the PhysicalDeviceBase, to be moved up to the AdapterBase in a future change. Bug: dawn:1774 Change-Id: Idef5d24fbd66d8552959230e246e453abddcc736 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/131001 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Stephen White <senorblanco@chromium.org> |
||
---|---|---|
.. | ||
native | ||
platform | ||
wire | ||
BUILD.gn | ||
EnumClassBitmasks.h | ||
dawn_proc.h | ||
dawn_thread_dispatch_proc.h |