| Index: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| index 8a3b219e91213d6ac4c1ec1b2f7388b898b32ba3..a6e93409d2a95074131af7aedc85b8048ea0f9d1 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| @@ -28,6 +28,8 @@
|
|
|
| #include "platform/image-decoders/webp/WEBPImageDecoder.h"
|
|
|
| +#include "platform/graphics/BitmapImageMetrics.h"
|
| +
|
| #if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)
|
| #error Blink assumes a little-endian target.
|
| #endif
|
| @@ -213,6 +215,9 @@ bool WEBPImageDecoder::updateDemuxer() {
|
| if (!(m_formatFlags & ANIMATION_FLAG)) {
|
| m_repetitionCount = cAnimationNone;
|
| } else {
|
| + BitmapImageMetrics::countAnimatedImageType(
|
| + BitmapImageMetrics::AnimatedWEBP);
|
| +
|
| // Since we have parsed at least one frame, even if partially,
|
| // the global animation (ANIM) properties have been read since
|
| // an ANIM chunk must precede the ANMF frame chunks.
|
|
|