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

Issue 1508683002: DeferredImageDecoder: early-out onGetYUV8Planes when possible (Closed)

Created:
5 years ago by Noel Gordon
Modified:
5 years ago
CC:
chromium-reviews, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, Rik, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, danakj, krit, f(malita), blink-reviews, vmpstr+blinkwatch_chromium.org, Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DeferredImageDecoder: early-out onGetYUV8Planes when possible Ganesh rendering will query onGetYUV8Planes when rendering GIF frames, and other image formats, that do not support YUV image decoding. Since the type of image decoded is known when a DecodingImageGenerator is created, store that type in DecodingImageGenerator, and use that to early-out requests for YUV decoding to avoid wasting time. ImageFrameGenerator::getYUVComponentSizes no longer needs to check for "jpg" since it is now done earlier in DecodingImageGenerator (it knows if the image frame format supports YUV decoding via m_canYUVDecode). No change in behavior, no new tests. BUG=566885, 476531 Committed: https://crrev.com/ce2af8863f0214f7327a68f74a5d4e42d4c031c0 Cr-Commit-Position: refs/heads/master@{#363727}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix canYUVDecode enable logic #

Total comments: 4

Patch Set 3 : Patch for landing #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -15 lines) Patch
M third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp View 1 2 6 chunks +8 lines, -8 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp View 1 2 4 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.cpp View 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
Noel Gordon
PTAL.
5 years ago (2015-12-07 12:54:22 UTC) #6
Noel Gordon
https://codereview.chromium.org/1508683002/diff/1/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp File third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp (right): https://codereview.chromium.org/1508683002/diff/1/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp#newcode223 third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp:223: m_canYUVDecode = !RuntimeEnabledFeatures::decodeToYUVEnabled() || (m_filenameExtension == "jpg"); Clearly, need ...
5 years ago (2015-12-07 13:03:52 UTC) #7
Noel Gordon
On 2015/12/07 13:03:52, noel gordon wrote: > Clearly, need to fix that. Fixed in patch ...
5 years ago (2015-12-07 14:08:17 UTC) #8
scroggo_chromium
https://codereview.chromium.org/1508683002/diff/20001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h File third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h (right): https://codereview.chromium.org/1508683002/diff/20001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h#newcode55 third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h:55: static SkImageGenerator* create(SkData*); // Highly unsual access. unusual* Is ...
5 years ago (2015-12-07 16:40:02 UTC) #9
scroggo_chromium
On 2015/12/07 16:40:02, scroggo_chromium wrote: > https://codereview.chromium.org/1508683002/diff/20001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h > File third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h > (right): > > https://codereview.chromium.org/1508683002/diff/20001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h#newcode55 ...
5 years ago (2015-12-07 22:13:15 UTC) #10
Noel Gordon
https://codereview.chromium.org/1508683002/diff/20001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h File third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h (right): https://codereview.chromium.org/1508683002/diff/20001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h#newcode55 third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h:55: static SkImageGenerator* create(SkData*); // Highly unsual access. On 2015/12/07 ...
5 years ago (2015-12-08 01:40:08 UTC) #11
Noel Gordon
https://codereview.chromium.org/1508683002/diff/40001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp File third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp (left): https://codereview.chromium.org/1508683002/diff/40001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp#oldcode78 third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp:78: return false; Tried to correct this comment for what ...
5 years ago (2015-12-08 01:48:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508683002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508683002/40001
5 years ago (2015-12-08 01:50:16 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-08 03:58:59 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ce2af8863f0214f7327a68f74a5d4e42d4c031c0 Cr-Commit-Position: refs/heads/master@{#363727}
5 years ago (2015-12-08 04:00:18 UTC) #21
scroggo
https://codereview.chromium.org/1508683002/diff/40001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp File third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp (left): https://codereview.chromium.org/1508683002/diff/40001/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp#oldcode78 third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp:78: return false; On 2015/12/08 01:48:10, noel gordon wrote: > ...
5 years ago (2015-12-08 15:11:29 UTC) #31
Noel Gordon
Ah right. I looked-up SkImageInfo and now see that color- & alpha-type are different things. ...
5 years ago (2015-12-09 00:41:50 UTC) #32
Noel Gordon
5 years ago (2015-12-09 00:48:21 UTC) #33
Message was sent while issue was closed.
I think the issue for me was the comment placement.  Code compares color-type,
comment talks about alpha-type!

Powered by Google App Engine
This is Rietveld 408576698