ambient_animation_background_color.h 860 B

1234567891011121314151617181920212223242526
  1. // Copyright 2022 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. #ifndef ASH_AMBIENT_UI_AMBIENT_ANIMATION_BACKGROUND_COLOR_H_
  5. #define ASH_AMBIENT_UI_AMBIENT_ANIMATION_BACKGROUND_COLOR_H_
  6. #include "ash/ash_export.h"
  7. #include "third_party/skia/include/core/SkColor.h"
  8. namespace cc {
  9. class SkottieWrapper;
  10. } // namespace cc
  11. namespace ash {
  12. // Returns the color of the background in the ambient-mode |skottie| animation.
  13. // If the the background color could not be parsed from the animation, a default
  14. // color is returned on production builds and a fatal error occurs on debug
  15. // builds.
  16. ASH_EXPORT SkColor
  17. GetAnimationBackgroundColor(const cc::SkottieWrapper& skottie);
  18. } // namespace ash
  19. #endif // ASH_AMBIENT_UI_AMBIENT_ANIMATION_BACKGROUND_COLOR_H_