#include "gpu/command_buffer/service/graphite_cache_controller.h"
#include "base/functional/callback_helpers.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "gpu/command_buffer/service/graphite_image_provider.h"
#include "skia/buildflags.h"
#include "third_party/skia/include/gpu/graphite/Context.h"
#include "third_party/skia/include/gpu/graphite/Recorder.h"
#if BUILDFLAG(SKIA_USE_DAWN)
#include "gpu/command_buffer/service/dawn_context_provider.h"
#endif
namespace gpu::raster {
namespace {
constexpr base::TimeDelta kResourceNotUsedSinceDelay = …;
constexpr base::TimeDelta kCleanUpAllResourcesDelay = …;
}
GraphiteCacheController::GraphiteCacheController(
skgpu::graphite::Recorder* recorder,
skgpu::graphite::Context* context,
DawnContextProvider* dawn_context_provider)
: … { … }
GraphiteCacheController::~GraphiteCacheController() { … }
void GraphiteCacheController::ScheduleCleanup() { … }
void GraphiteCacheController::CleanUpScratchResources() { … }
void GraphiteCacheController::CleanUpAllResources() { … }
}