Bug 1694510 - Assume default last_frame_used during WR deserialization r=jrmuizel
authorDzmitry Malyshau <dmalyshau@mozilla.com>
Tue, 23 Feb 2021 22:08:12 +0000
changeset 568516 2ce2279121cfb6a0aa21af264a298fd6de460a74
parent 568515 900e66a5ebaedd4ac1482d248f7813d4f8b138ed
child 568517 1f0d643a3e524308d88cf017d80d82cf6bfb9bd3
push id137065
push userdmalyshau@mozilla.com
push dateTue, 23 Feb 2021 23:45:36 +0000
treeherderautoland@2ce2279121cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1694510
milestone88.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1694510 - Assume default last_frame_used during WR deserialization r=jrmuizel Differential Revision: https://phabricator.services.mozilla.com/D106193
gfx/wr/webrender/src/glyph_cache.rs
--- a/gfx/wr/webrender/src/glyph_cache.rs
+++ b/gfx/wr/webrender/src/glyph_cache.rs
@@ -53,16 +53,17 @@ pub enum CachedGlyphData {
 
 #[cfg_attr(feature = "capture", derive(Serialize))]
 #[cfg_attr(feature = "replay", derive(Deserialize))]
 #[derive(Default)]
 pub struct GlyphKeyCacheInfo {
     eviction_notice: EvictionNotice,
     #[cfg(debug_assertions)]
     #[allow(dead_code)]
+    #[cfg_attr(feature = "replay", serde(default))]
     last_frame_used: FrameId,
 }
 
 pub type GlyphKeyCache = ResourceClassCache<GlyphKey, GlyphCacheEntry, GlyphKeyCacheInfo>;
 
 impl GlyphKeyCache {
     pub fn eviction_notice(&self) -> &EvictionNotice {
         &self.user_data.eviction_notice