#include "cc/tiles/decoded_image_tracker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/time/default_tick_clock.h"
#include "base/trace_event/trace_event.h"
namespace cc {
namespace {
const int64_t kTimeoutDurationMs = …;
}
DecodedImageTracker::ImageLock::ImageLock(
DecodedImageTracker* tracker,
ImageController::ImageDecodeRequestId request_id,
base::TimeTicks lock_time)
: … { … }
DecodedImageTracker::ImageLock::~ImageLock() { … }
DecodedImageTracker::DecodedImageTracker(
ImageController* controller,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
DecodedImageTracker::~DecodedImageTracker() { … }
void DecodedImageTracker::QueueImageDecode(
const PaintImage& image,
const TargetColorParams& target_color_params,
base::OnceCallback<void(bool)> callback) { … }
void DecodedImageTracker::UnlockAllImages() { … }
void DecodedImageTracker::OnImagesUsedInDraw(
const std::vector<DrawImage>& draw_images) { … }
void DecodedImageTracker::ImageDecodeFinished(
base::OnceCallback<void(bool)> callback,
PaintImage::Id image_id,
ImageController::ImageDecodeRequestId request_id,
ImageController::ImageDecodeResult result) { … }
void DecodedImageTracker::OnTimeoutImages() { … }
void DecodedImageTracker::EnqueueTimeout() { … }
}