Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp

Issue 2938593002: Remove unwanted decoder failure check present in DecodeToYUV.
Patch Set: Initial patch to remove unwanted decoder failure check Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698