#include "gpu/command_buffer/service/graphite_image_provider.h"
#include "base/metrics/histogram_macros.h"
#include "third_party/skia/include/gpu/graphite/Image.h"
namespace gpu {
GraphiteImageProvider::ImageHolder::ImageHolder(sk_sp<SkImage> image)
: … { … }
GraphiteImageProvider::ImageHolder::ImageHolder(ImageHolder&&) = default;
GraphiteImageProvider::ImageHolder&
GraphiteImageProvider::ImageHolder::operator=(ImageHolder&&) = default;
GraphiteImageProvider::ImageHolder::~ImageHolder() = default;
GraphiteImageProvider::GraphiteImageProvider(size_t max_cache_bytes)
: … { … }
GraphiteImageProvider::~GraphiteImageProvider() = default;
sk_sp<SkImage> GraphiteImageProvider::findOrCreate(
skgpu::graphite::Recorder* recorder,
const SkImage* image,
SkImage::RequiredProperties required_props) { … }
void GraphiteImageProvider::PurgeCacheIfNecessaryToAllowForNewImage(
size_t new_bytes) { … }
void GraphiteImageProvider::PurgeImagesNotUsedSince(
base::TimeDelta last_use_delta) { … }
void GraphiteImageProvider::ClearImageCache() { … }
}