mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Refactor [de]serialization functions out of CacheKey
Storing values into the cache will need to serialize and deserialize values in addition to keys. This patch factors the serialization utilities out of CacheKey into a more general "Stream" utility that supports both input and output for serialization and deserialization. Multiple files are not renamed to make parsing the diff easier. They will be renamed in Change If61f0466d79e7759ed32c4ddf541ad0c17247996. Bug: dawn:1480, dawn:1481 Change-Id: If7594c4ff7117454c1ab3d0afaeee5653120add8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96480 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -209,8 +209,8 @@ DeviceBase::DeviceBase(AdapterBase* adapter, const DeviceDescriptor* descriptor)
|
||||
// Record the cache key from the properties. Note that currently, if a new extension
|
||||
// descriptor is added (and probably handled here), the cache key recording needs to be
|
||||
// updated.
|
||||
mDeviceCacheKey.Record(kDawnVersion, adapterProperties, mEnabledFeatures.featuresBitSet,
|
||||
mEnabledToggles.toggleBitset, cacheDesc);
|
||||
StreamIn(&mDeviceCacheKey, kDawnVersion, adapterProperties, mEnabledFeatures.featuresBitSet,
|
||||
mEnabledToggles.toggleBitset, cacheDesc);
|
||||
}
|
||||
|
||||
DeviceBase::DeviceBase() : mState(State::Alive) {
|
||||
|
||||
Reference in New Issue
Block a user