skottie_wrapper_stub.cc 873 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "cc/paint/skottie_wrapper.h"
  5. #include "base/check.h"
  6. namespace cc {
  7. // This stub source file is only built on platforms that don't support skottie.
  8. // Skottie code paths should not be taken at all on these platforms, so
  9. // a concrete SkottieWrapper implementation is not required.
  10. // static
  11. scoped_refptr<SkottieWrapper> SkottieWrapper::CreateSerializable(
  12. std::vector<uint8_t> data) {
  13. CHECK(false) << "Skottie is not supported on this platform";
  14. return nullptr;
  15. }
  16. // static
  17. scoped_refptr<SkottieWrapper> SkottieWrapper::CreateNonSerializable(
  18. base::span<const uint8_t> data) {
  19. CHECK(false) << "Skottie is not supported on this platform";
  20. return nullptr;
  21. }
  22. } // namespace cc