blob: dc184f6e84d3be64216996d1a7ced84cad2469a9 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/paint/shader_transfer_cache_entry.h"
namespace cc {
sk_sp<PaintShader> shader,
size_t size)
: shader_(std::move(shader)),
size_(size) {}
ServiceShaderTransferCacheEntry::~ServiceShaderTransferCacheEntry() = default;
size_t ServiceShaderTransferCacheEntry::CachedSize() const {
return size_;
bool ServiceShaderTransferCacheEntry::Deserialize(
GrContext* context,
base::span<const uint8_t> data) {
// These entries must be created directly via CreateLocalEntry.
return false;
} // namespace cc