blob: 5b097e975b35f115e6a393d4f3ecbf2d4fa0c521 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/tiles/image_decode_cache.h"
namespace cc {
class StubDecodeCache : public ImageDecodeCache {
StubDecodeCache() = default;
~StubDecodeCache() override = default;
TaskResult GetTaskForImageAndRef(const DrawImage& image,
const TracingInfo& tracing_info) override;
TaskResult GetOutOfRasterDecodeTaskForImageAndRef(
const DrawImage& image) override;
void UnrefImage(const DrawImage& image) override {}
DecodedDrawImage GetDecodedImageForDraw(const DrawImage& image) override;
void DrawWithImageFinished(const DrawImage& image,
const DecodedDrawImage& decoded_image) override {}
void ReduceCacheUsage() override {}
void SetShouldAggressivelyFreeResources(
bool aggressively_free_resources) override {}
void ClearCache() override {}
size_t GetMaximumMemoryLimitBytes() const override;
void NotifyImageUnused(const PaintImage::FrameKey& frame_key) override {}
} // namespace cc