blob: 4b7e1145dd9b8d9c3b3f20a89041a2565f5a7647 [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/test/stub_decode_cache.h"
namespace cc {
bool StubDecodeCache::GetTaskForImageAndRef(const DrawImage& image,
const TracingInfo& tracing_info,
scoped_refptr<TileTask>* task) {
return true;
}
bool StubDecodeCache::GetOutOfRasterDecodeTaskForImageAndRef(
const DrawImage& image,
scoped_refptr<TileTask>* task) {
return true;
}
DecodedDrawImage StubDecodeCache::GetDecodedImageForDraw(
const DrawImage& image) {
return DecodedDrawImage(nullptr, SkSize::MakeEmpty(),
SkSize::Make(1.0f, 1.0f), kNone_SkFilterQuality);
}
size_t StubDecodeCache::GetMaximumMemoryLimitBytes() const {
return 0u;
}
} // namespace cc