Rename CachedBlob -> Blob; move to own file

Bug: none
Change-Id: I4e0ad7fe321f6ff8d0ab1ad62de3f42daea50140
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92485
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng
2022-06-03 01:13:41 +00:00
committed by Dawn LUCI CQ
parent c4a427b702
commit 1ad896df11
15 changed files with 168 additions and 118 deletions

View File

@@ -628,15 +628,15 @@ BlobCache* DeviceBase::GetBlobCache() {
return nullptr;
}
CachedBlob DeviceBase::LoadCachedBlob(const CacheKey& key) {
Blob DeviceBase::LoadCachedBlob(const CacheKey& key) {
BlobCache* blobCache = GetBlobCache();
if (!blobCache) {
return CachedBlob();
return Blob();
}
return blobCache->Load(key);
}
void DeviceBase::StoreCachedBlob(const CacheKey& key, const CachedBlob& blob) {
void DeviceBase::StoreCachedBlob(const CacheKey& key, const Blob& blob) {
if (!blob.Empty()) {
BlobCache* blobCache = GetBlobCache();
if (blobCache) {