SkCodecAnimationPriv.h 735 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkCodecAnimationPriv_DEFINED
  8. #define SkCodecAnimationPriv_DEFINED
  9. namespace SkCodecAnimation {
  10. /**
  11. * How to blend the current frame.
  12. */
  13. enum class Blend {
  14. /**
  15. * Blend with the prior frame. This is the typical case, supported
  16. * by all animated image types.
  17. */
  18. kPriorFrame,
  19. /**
  20. * Do not blend.
  21. *
  22. * This frames pixels overwrite previous pixels "blending" with
  23. * the background color of transparent.
  24. */
  25. kBG,
  26. };
  27. }
  28. #endif // SkCodecAnimationPriv_DEFINED