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

Issue 2880533002: ImageDecodeBench packeted runs should resume decoding where it left off (Closed)

Created:
3 years, 7 months ago by cblume
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Resume ImageDecodeBench packeted runs where it left off ImageDecodeBench has a mode where it fills the buffer with data of a given packet size. It then decodes as much as it can for each data packet received. I believe the point of this mode is to test a more real-world decoding scenario (using network-sized packets). However, ImageDecodeBench fetches already-decoded frames from animated images when a new packet arrives, rather than continuing to decode the next frame. For example, if we decoded the first 3 frames with packet 1, upon packet 2 coming in, we fetch those first 3 frames again before decoding frame 4. This does not cause an expensive decode, but still deviates from the real-world decoding scenario. In this change, make ImageDecodeBench resume where it left off when in packet timing mode. BUG=721260 Review-Url: https://codereview.chromium.org/2880533002 Cr-Commit-Position: refs/heads/master@{#473645} Committed: https://chromium.googlesource.com/chromium/src/+/40bdf8dbdc4089b110e76ea1d063a9b92f615301

Patch Set 1 #

Total comments: 2

Patch Set 2 : Making the packeted test more closely mimic cache clearing and resetting data #

Total comments: 5

Patch Set 3 : Remove ClearCacheExceptFrame & calls to SetData to reset and clear #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp View 1 2 2 chunks +5 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 49 (26 generated)
cblume
While cleaning up timing I noticed this behavior probably isn't what we wanted. PTAL
3 years, 7 months ago (2017-05-11 09:17:41 UTC) #4
scroggo
https://codereview.chromium.org/2880533002/diff/1/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): https://codereview.chromium.org/2880533002/diff/1/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode242 third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp:242: for (int i = next_frame_to_decode; i < frame_count; ++i) ...
3 years, 7 months ago (2017-05-11 13:56:23 UTC) #8
Peter Kasting
Removing myself since it looks like you've got other capable folks reviewing here.
3 years, 7 months ago (2017-05-11 15:18:18 UTC) #11
cblume
https://codereview.chromium.org/2880533002/diff/1/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): https://codereview.chromium.org/2880533002/diff/1/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode242 third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp:242: for (int i = next_frame_to_decode; i < frame_count; ++i) ...
3 years, 7 months ago (2017-05-11 15:45:31 UTC) #12
scroggo_chromium
On 2017/05/11 15:45:31, cblume wrote: > https://codereview.chromium.org/2880533002/diff/1/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp > File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): > > https://codereview.chromium.org/2880533002/diff/1/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode242 > ...
3 years, 7 months ago (2017-05-11 16:55:48 UTC) #13
cblume
On 2017/05/11 16:55:48, scroggo_chromium wrote: > when you clear the cache would be its own ...
3 years, 7 months ago (2017-05-11 18:38:15 UTC) #14
scroggo_chromium
FYI: You seem to have accidentally landed these changes in crrev.com/2857753002 https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): ...
3 years, 7 months ago (2017-05-15 12:48:28 UTC) #19
scroggo_chromium
> However, ImageDecodeBench restarts animated images for each packet. For > example, if we could ...
3 years, 7 months ago (2017-05-15 12:51:16 UTC) #20
cblume
https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode246 third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp:246: decoder->ClearCacheExceptFrame(next_frame_to_decode); On 2017/05/15 12:48:28, scroggo_chromium wrote: > I'm ambivalent ...
3 years, 7 months ago (2017-05-15 17:39:11 UTC) #21
scroggo_chromium
https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode246 third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp:246: decoder->ClearCacheExceptFrame(next_frame_to_decode); On 2017/05/15 17:39:11, cblume wrote: > On 2017/05/15 ...
3 years, 7 months ago (2017-05-15 18:09:22 UTC) #22
cblume
On 2017/05/15 18:09:22, scroggo_chromium wrote: > https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp > File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): > > https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode246 > ...
3 years, 7 months ago (2017-05-15 18:59:42 UTC) #23
scroggo_chromium
On 2017/05/15 18:59:42, cblume wrote: > On 2017/05/15 18:09:22, scroggo_chromium wrote: > > > https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp ...
3 years, 7 months ago (2017-05-15 20:03:13 UTC) #24
cblume
+Ned IIRC, telemetry replays a live capture. So rather than loading from disc and having ...
3 years, 7 months ago (2017-05-15 20:19:37 UTC) #25
scroggo_chromium
On 2017/05/15 20:19:37, cblume wrote: > +Ned > > IIRC, telemetry replays a live capture. ...
3 years, 7 months ago (2017-05-15 20:35:11 UTC) #26
nednguyen
On 2017/05/15 20:19:37, cblume wrote: > +Ned > > IIRC, telemetry replays a live capture. ...
3 years, 7 months ago (2017-05-15 20:42:56 UTC) #27
cblume
https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp File third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp (right): https://codereview.chromium.org/2880533002/diff/20001/third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp#newcode243 third_party/WebKit/Source/platform/testing/ImageDecodeBench.cpp:243: if (frame->GetStatus() != ImageFrame::kFrameComplete) On 2017/05/15 12:48:28, scroggo_chromium wrote: ...
3 years, 7 months ago (2017-05-15 20:55:09 UTC) #30
scroggo_chromium
Please update the commit message as I suggested earlier in comment 20: > However, ImageDecodeBench ...
3 years, 7 months ago (2017-05-16 13:34:35 UTC) #33
cblume
On 2017/05/16 13:34:35, scroggo_chromium wrote: > Please update the commit message as I suggested earlier ...
3 years, 7 months ago (2017-05-19 16:44:44 UTC) #36
scroggo_chromium
On 2017/05/19 16:44:44, cblume wrote: > On 2017/05/16 13:34:35, scroggo_chromium wrote: > > Please update ...
3 years, 7 months ago (2017-05-19 16:57:03 UTC) #37
cblume
On 2017/05/19 16:57:03, scroggo_chromium wrote: > On 2017/05/19 16:44:44, cblume wrote: > > On 2017/05/16 ...
3 years, 7 months ago (2017-05-19 17:38:31 UTC) #38
Noel Gordon
On 2017/05/19 17:38:31, cblume wrote: > Yep. Noel@ is an owner of platform/ (there is ...
3 years, 7 months ago (2017-05-22 13:45:23 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2880533002/40001
3 years, 7 months ago (2017-05-22 17:43:01 UTC) #46
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 19:07:50 UTC) #49
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/40bdf8dbdc4089b110e76ea1d063...

Powered by Google App Engine
This is Rietveld 408576698