diff options
Diffstat (limited to 'chromium/cc/paint')
-rw-r--r-- | chromium/cc/paint/raw_memory_transfer_cache_entry.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/cc/paint/raw_memory_transfer_cache_entry.cc b/chromium/cc/paint/raw_memory_transfer_cache_entry.cc index 55c38c58a24..ecbdc84ef6f 100644 --- a/chromium/cc/paint/raw_memory_transfer_cache_entry.cc +++ b/chromium/cc/paint/raw_memory_transfer_cache_entry.cc @@ -20,6 +20,10 @@ ClientRawMemoryTransferCacheEntry::~ClientRawMemoryTransferCacheEntry() = // static base::AtomicSequenceNumber ClientRawMemoryTransferCacheEntry::s_next_id_; +uint32_t ClientRawMemoryTransferCacheEntry::SerializedSize() const { + return static_cast<uint32_t>(data_.size()); +} + uint32_t ClientRawMemoryTransferCacheEntry::Id() const { return id_; } @@ -38,8 +42,8 @@ ServiceRawMemoryTransferCacheEntry::ServiceRawMemoryTransferCacheEntry() = ServiceRawMemoryTransferCacheEntry::~ServiceRawMemoryTransferCacheEntry() = default; -uint32_t ClientRawMemoryTransferCacheEntry::SerializedSize() const { - return static_cast<uint32_t>(data_.size()); +size_t ServiceRawMemoryTransferCacheEntry::CachedSize() const { + return data_.size(); } bool ServiceRawMemoryTransferCacheEntry::Deserialize( |