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

Issue 2940593002: Optimize yuv decoding fail check and remove the usage of unwanted variable.

Created:
3 years, 6 months ago by naga
Modified:
3 years, 5 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Optimize yuv decoding fail check and remove the usage of unwanted variable. This patch optimizes the yuv decoder failure check and removes the unwanted variable usage. yuv_decoding_failed_ condition check present in the GetYUVComponentSizes() but this variable is updated after calling this function so we can remove this. BUG=732769

Patch Set 1 : Optimize YUV decode fail check #

Patch Set 2 : Modified the function return type #

Total comments: 6

Patch Set 3 : Remove image plane creation check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -11 lines) Patch
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp View 1 2 6 chunks +5 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
scroggo_chromium
Sorry if I'm reviewing this before you were ready for review. I just noticed that ...
3 years, 6 months ago (2017-06-15 14:45:23 UTC) #9
naga
On 2017/06/15 14:45:23, scroggo_chromium wrote: > Sorry if I'm reviewing this before you were ready ...
3 years, 6 months ago (2017-06-15 15:02:13 UTC) #10
scroggo_chromium
https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (left): https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#oldcode204 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:204: yuv_decoding_failed_ = true; > In the current code this ...
3 years, 6 months ago (2017-06-15 16:50:39 UTC) #11
naga
https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (left): https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#oldcode204 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:204: yuv_decoding_failed_ = true; On 2017/06/15 16:50:38, scroggo_chromium wrote: > ...
3 years, 6 months ago (2017-06-15 17:49:02 UTC) #12
scroggo_chromium
https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (left): https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#oldcode204 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:204: yuv_decoding_failed_ = true; On 2017/06/15 17:49:02, naga wrote: > ...
3 years, 6 months ago (2017-06-15 20:40:01 UTC) #13
naga
On 2017/06/15 20:40:01, scroggo_chromium wrote: > https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp > File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (left): > > https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#oldcode204 > ...
3 years, 6 months ago (2017-06-16 00:12:28 UTC) #14
naga
3 years, 6 months ago (2017-06-22 17:18:25 UTC) #15
scroggo_chromium
On 2017/06/16 00:12:28, naga wrote: > On 2017/06/15 20:40:01, scroggo_chromium wrote: > > > https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp ...
3 years, 5 months ago (2017-07-06 21:07:20 UTC) #17
scroggo_chromium
https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp#newcode380 third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:380: if (!decoder || !decoder->CanDecodeToYUV()) On 2017/06/15 14:45:22, scroggo_chromium wrote: ...
3 years, 5 months ago (2017-07-06 21:10:19 UTC) #18
naga
3 years, 5 months ago (2017-07-07 14:30:06 UTC) #19
On 2017/07/06 21:10:19, scroggo_chromium wrote:
>
https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp
> (right):
> 
>
https://codereview.chromium.org/2940593002/diff/20001/third_party/WebKit/Sour...
> third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp:380: if
> (!decoder || !decoder->CanDecodeToYUV())
> On 2017/06/15 14:45:22, scroggo_chromium wrote:
> > This change (moving caller of CanDecodeToYUV from UpdateYUVComponentSizes to
> > here) seems fine to me. This saves us the creation of dummy image planes if
> > CanDecodeToYUV returns false, and CanDecodeToYUV does not take into
> > consideration whether image planes are set.
> > 
> > It seems unrelated to the other change though, and maybe belongs in its own
> CL.
> 
> > naga, I think you still need to separate out the code I suggested
> > moving into its own CL.
> 
> It looks like you've partially done that in crrev.com/2953023002, but you
> haven't removed it from here. This CL should contain just the one change.

Removed the above changes in this patch

Powered by Google App Engine
This is Rietveld 408576698