[go: nahoru, domu]

blob: 965c086c0aabb7724bd1b25464d9bb22147b713f [file] [log] [blame]
// Copyright 2021 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/paint/skottie_wrapper.h"
#include "base/check.h"
namespace cc {
// This stub source file is only built on platforms that don't support skottie.
// Skottie code paths should not be taken at all on these platforms, so
// a concrete SkottieWrapper implementation is not required.
// static
scoped_refptr<SkottieWrapper> SkottieWrapper::CreateSerializable(
std::vector<uint8_t> data) {
CHECK(false) << "Skottie is not supported on this platform";
return nullptr;
}
// static
scoped_refptr<SkottieWrapper> SkottieWrapper::CreateNonSerializable(
base::span<const uint8_t> data) {
CHECK(false) << "Skottie is not supported on this platform";
return nullptr;
}
} // namespace cc