| Index: third_party/WebKit/Source/web/ImageDecodeBench.cpp
|
| diff --git a/third_party/WebKit/Source/web/ImageDecodeBench.cpp b/third_party/WebKit/Source/web/ImageDecodeBench.cpp
|
| index 6c8ecc1aa7af9bdd100705426c395f9ff6a08b29..7341bc853d389a9367e8b87e0209e11bcaca8ef3 100644
|
| --- a/third_party/WebKit/Source/web/ImageDecodeBench.cpp
|
| +++ b/third_party/WebKit/Source/web/ImageDecodeBench.cpp
|
| @@ -23,6 +23,7 @@ http://crbug.com/398235#c103 and http://crbug.com/258324#c5
|
|
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/image-decoders/ImageDecoder.h"
|
| +#include "platform/image-decoders/SharedBufferSegmentReader.h"
|
| #include "platform/testing/TestingPlatformSupport.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/web/WebKit.h"
|
| @@ -294,7 +295,7 @@ bool decodeImageData(SharedBuffer* data, bool colorCorrection, size_t packetSize
|
| position += length;
|
|
|
| bool allDataReceived = position == data->size();
|
| - decoder->setData(packetData.get(), allDataReceived);
|
| + decoder->setData(packetData, allDataReceived);
|
|
|
| int frameCount = decoder->frameCount();
|
| for (int i = 0; i < frameCount; ++i) {
|
|
|