#include "cc/test/stub_decode_cache.h"
namespace cc {
ImageDecodeCache::TaskResult StubDecodeCache::GetTaskForImageAndRef(
ClientId client_id,
const DrawImage& image,
const TracingInfo& tracing_info) {
return TaskResult(true, false,
false);
}
ImageDecodeCache::TaskResult
StubDecodeCache::GetOutOfRasterDecodeTaskForImageAndRef(
ClientId client_id,
const DrawImage& image) {
return TaskResult(true, false,
false);
}
DecodedDrawImage StubDecodeCache::GetDecodedImageForDraw(
const DrawImage& image) {
return DecodedDrawImage();
}
size_t StubDecodeCache::GetMaximumMemoryLimitBytes() const {
return 0u;
}
bool StubDecodeCache::UseCacheForDrawImage(const DrawImage& image) const {
return true;
}
}