More code clean-ups after creating DeviceMock with Adapter This patch does more code clean-ups in Device.cpp after we update the creation of DeviceMock with Adapter: 1. Remove the `virtual` qualifier on the member functions `GetInstance()` and `GetPlatform()` of class `DeviceBase` after the removal of these overloads in the Mock tests. 2. Remove the check on the nullability of `mAdapter` in `DeviceBase`. Bug: chromium:42240655 Test: dawn_unittests Change-Id: I11ba819d2724ed32300131fbdc773299e465c72e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/202497 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.