chromium/cc/tiles/decoded_image_tracker.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {
// Timeout images after 250ms, whether or not they've been used. This prevents
// unbounded cache usage.
const int64_t kTimeoutDurationMs =;
}  // namespace

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() {}

}  // namespace cc