| Index: third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
|
| index a1adcce004f065ad73110d3e77733144419bfd66..ed1eb4686770da7caf152fd4cad8a3ce5325a8ce 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
|
| @@ -51,15 +51,7 @@ DecodingImageGenerator::~DecodingImageGenerator()
|
|
|
| SkData* DecodingImageGenerator::onRefEncodedData()
|
| {
|
| - // FIXME: If the image has been clipped or scaled, do not return the original
|
| - // encoded data, since on playback it will not be known how the clipping/scaling
|
| - // was done.
|
| - RefPtr<SharedBuffer> buffer = nullptr;
|
| - bool allDataReceived = false;
|
| - m_frameGenerator->copyData(&buffer, &allDataReceived);
|
| - if (buffer && allDataReceived)
|
| - return SkData::NewWithCopy(buffer->data(), buffer->size());
|
| - return 0;
|
| + return m_frameGenerator->refSkData();
|
| }
|
|
|
| bool DecodingImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
|
|
|