Remove unnecessary getters from dawn_native::Instance.

As part of moving to webgpu.h's version of the Instance, the setters
will be replaced with a descriptor, and getters don't usually exists for
things set with descriptors (except getBindGroupLayout).

BUG=dawn:22

Change-Id: I05be8ebf241b33d019d521e40bfef8e49cdab07d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14540
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2019-12-13 15:32:42 +00:00
committed by Commit Bot service account
parent 97fb51f4af
commit 77fd4750ae
4 changed files with 9 additions and 18 deletions

View File

@@ -113,26 +113,14 @@ namespace dawn_native {
mImpl->EnableBackendValidation(enableBackendValidation);
}
bool Instance::IsBackendValidationEnabled() const {
return mImpl->IsBackendValidationEnabled();
}
void Instance::EnableBeginCaptureOnStartup(bool beginCaptureOnStartup) {
mImpl->EnableBeginCaptureOnStartup(beginCaptureOnStartup);
}
bool Instance::IsBeginCaptureOnStartupEnabled() const {
return mImpl->IsBeginCaptureOnStartupEnabled();
}
void Instance::SetPlatform(dawn_platform::Platform* platform) {
mImpl->SetPlatform(platform);
}
dawn_platform::Platform* Instance::GetPlatform() const {
return mImpl->GetPlatform();
}
size_t GetLazyClearCountForTesting(WGPUDevice device) {
dawn_native::DeviceBase* deviceBase = reinterpret_cast<dawn_native::DeviceBase*>(device);
return deviceBase->GetLazyClearCountForTesting();