Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp |
| diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp |
| index 5ed0c32cb845f5c8a4052e7b3207a22688b238b1..b91bfbbfb32ea323d628afc243515e45998b6e66 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp |
| +++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp |
| @@ -169,11 +169,6 @@ bool ImageFrameGenerator::DecodeToYUV(SegmentReader* data, |
| const SkISize component_sizes[3], |
| void* planes[3], |
| const size_t row_bytes[3]) { |
| - // TODO (scroggo): The only interesting thing this uses from the |
| - // ImageFrameGenerator is m_decodeFailed. Move this into |
| - // DecodingImageGenerator, which is the only class that calls it. |
| - if (decode_failed_) |
|
scroggo_chromium
2017/06/15 14:50:33
The motivation for this check is that if the image
naga
2017/06/15 15:05:25
In the current code decode_failed_ variable is not
scroggo_chromium
2017/06/15 16:46:19
I disagree. Here's how it's related: If decode_fai
naga
2017/06/15 16:59:20
decode_failed_ variable status is updated on Decod
|
| - return false; |
| TRACE_EVENT1("blink", "ImageFrameGenerator::decodeToYUV", "frame index", |
| static_cast<int>(index)); |