1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cc / paint / skottie_wrapper_stub.cc [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/notreached.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::UnsafeCreateSerializable(
std::vector<uint8_t> data) {
NOTREACHED() << "Skottie is not supported on this platform";
}
// static
scoped_refptr<SkottieWrapper> SkottieWrapper::UnsafeCreateNonSerializable(
base::span<const uint8_t> data) {
NOTREACHED() << "Skottie is not supported on this platform";
}
} // namespace cc