#include "gpu/command_buffer/service/gr_cache_controller.h"
#include <chrono>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "gpu/command_buffer/service/shared_context_state.h"
#include "gpu/command_buffer/service/skia_utils.h"
#include "gpu/config/gpu_finch_features.h"
#include "gpu/ipc/common/gpu_client_ids.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
namespace gpu {
namespace raster {
GrCacheController::GrCacheController(SharedContextState* context_state)
: … { … }
GrCacheController::GrCacheController(
SharedContextState* context_state,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
GrCacheController::~GrCacheController() = default;
void GrCacheController::ScheduleGrContextCleanup() { … }
void GrCacheController::PerformDeferredCleanupThrottled() { … }
void GrCacheController::PerformDeferredCleanup() { … }
void GrCacheController::PurgeGrCache(uint64_t idle_id) { … }
}
}