Hide blob caching behind a toggle on the device for now.

Bug: dawn:549
Change-Id: If704e528166938ff9beb2b7f9f222b75fde8ec08
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88465
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Loko Kung
2022-05-03 07:06:33 +00:00
committed by Dawn LUCI CQ
parent 0e74918b68
commit 3b2b34f0ff
5 changed files with 102 additions and 106 deletions

View File

@@ -568,7 +568,10 @@ bool DeviceBase::APIPopErrorScope(wgpu::ErrorCallback callback, void* userdata)
}
BlobCache* DeviceBase::GetBlobCache() {
return mInstance->GetBlobCache();
if (IsToggleEnabled(Toggle::EnableBlobCache)) {
return mInstance->GetBlobCache();
}
return nullptr;
}
MaybeError DeviceBase::ValidateObject(const ApiObjectBase* object) const {