Chromium Code Reviews| 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 cd34b54fce2c9e1f6bd72e18027b61b6d1c28352..6fe292603df5e86f5f5a14362a739b415d90a207 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp |
| +++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp |
| @@ -51,16 +51,7 @@ DecodingImageGenerator::~DecodingImageGenerator() |
| SkData* DecodingImageGenerator::onRefEncodedData() |
| { |
| TRACE_EVENT0("blink", "DecodingImageGenerator::refEncodedData"); |
| - |
| - // 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->refEncodedData(); |
|
Noel Gordon
2015/12/08 15:41:58
Space before this line, as done elsewhere in this
aleksandar.stojiljkovic
2015/12/08 20:28:13
Done.
|
| } |
| bool DecodingImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, |