mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user