Leon Scroggins III | 33deb7e | 2017-06-07 12:31:51 -0400 | [diff] [blame] | 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 | |
| 8 | #ifndef SkCodecAnimationPriv_DEFINED |
| 9 | #define SkCodecAnimationPriv_DEFINED |
| 10 | |
| 11 | namespace SkCodecAnimation { |
| 12 | /** |
| 13 | * How to blend the current frame. |
| 14 | */ |
| 15 | enum class Blend { |
| 16 | /** |
| 17 | * Blend with the prior frame. This is the typical case, supported |
| 18 | * by all animated image types. |
| 19 | */ |
| 20 | kPriorFrame, |
| 21 | |
| 22 | /** |
| 23 | * Do not blend. |
| 24 | * |
| 25 | * This frames pixels overwrite previous pixels "blending" with |
| 26 | * the background color of transparent. |
| 27 | */ |
| 28 | kBG, |
| 29 | }; |
| 30 | |
| 31 | } |
| 32 | #endif // SkCodecAnimationPriv_DEFINED |