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

Issue 458313003: Smarter algorithm for extending 8-bit frame IDs to 32-bit frame IDs. (Closed)

Created:
6 years, 4 months ago by hubbe
Modified:
6 years, 4 months ago
Reviewers:
miu, Alpha Left Google
CC:
chromium-reviews, hclam+watch_chromium.org, cbentzel+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Smarter algorithm for extending 8-bit frame IDs to 32-bit frame IDs. The previous algorithm was limited to jumps of ~64, the new algorithm can handle jumps of ~127. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290023

Patch Set 1 #

Total comments: 4

Patch Set 2 : test added #

Patch Set 3 : fix odd behavior #

Patch Set 4 : s/0LL/0/g #

Total comments: 6

Patch Set 5 : wraparound tests added #

Patch Set 6 : test wrap-around better #

Patch Set 7 : better tests #

Patch Set 8 : better test #

Patch Set 9 : better test output #

Patch Set 10 : more better output #

Patch Set 11 : switch to unsigned arithmetics #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -44 lines) Patch
M media/cast/cast_testing.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/net/cast_transport_defines.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -44 lines 0 comments Download
M media/cast/net/frame_id_wrap_helper_test.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
hubbe
6 years, 4 months ago (2014-08-11 23:17:58 UTC) #1
Alpha Left Google
https://codereview.chromium.org/458313003/diff/1/media/cast/net/cast_transport_defines.h File media/cast/net/cast_transport_defines.h (right): https://codereview.chromium.org/458313003/diff/1/media/cast/net/cast_transport_defines.h#newcode73 media/cast/net/cast_transport_defines.h:73: if (ret - largest_frame_id_seen_ > 127) { This code ...
6 years, 4 months ago (2014-08-12 01:07:15 UTC) #2
hubbe
Comments addressed and test added. PS: The existing test was not actually running - fixed ...
6 years, 4 months ago (2014-08-13 17:37:03 UTC) #3
miu
https://codereview.chromium.org/458313003/diff/60001/media/cast/net/cast_transport_defines.h File media/cast/net/cast_transport_defines.h (right): https://codereview.chromium.org/458313003/diff/60001/media/cast/net/cast_transport_defines.h#newcode76 media/cast/net/cast_transport_defines.h:76: if (ret - largest_frame_id_seen_ < -128) { s/if/else if/ ...
6 years, 4 months ago (2014-08-13 18:38:58 UTC) #4
Alpha Left Google
https://codereview.chromium.org/458313003/diff/60001/media/cast/net/cast_transport_defines.h File media/cast/net/cast_transport_defines.h (right): https://codereview.chromium.org/458313003/diff/60001/media/cast/net/cast_transport_defines.h#newcode69 media/cast/net/cast_transport_defines.h:69: : largest_frame_id_seen_(kStartFrameId) {} Please add another ctor for testing ...
6 years, 4 months ago (2014-08-13 18:47:25 UTC) #5
hubbe
ID wrap-arounds should now be properly tested. https://codereview.chromium.org/458313003/diff/60001/media/cast/net/cast_transport_defines.h File media/cast/net/cast_transport_defines.h (right): https://codereview.chromium.org/458313003/diff/60001/media/cast/net/cast_transport_defines.h#newcode69 media/cast/net/cast_transport_defines.h:69: : largest_frame_id_seen_(kStartFrameId) ...
6 years, 4 months ago (2014-08-13 21:18:29 UTC) #6
miu
lgtm
6 years, 4 months ago (2014-08-13 22:03:51 UTC) #7
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 4 months ago (2014-08-13 22:44:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/458313003/140001
6 years, 4 months ago (2014-08-13 22:47:20 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-14 08:28:18 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-14 09:00:01 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/3088)
6 years, 4 months ago (2014-08-14 09:00:03 UTC) #12
Alpha Left Google
LGTM as well.
6 years, 4 months ago (2014-08-14 21:46:54 UTC) #13
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 4 months ago (2014-08-15 20:42:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/458313003/200001
6 years, 4 months ago (2014-08-15 20:43:29 UTC) #15
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 21:54:22 UTC) #16
Message was sent while issue was closed.
Committed patchset #11 (200001) as 290023

Powered by Google App Engine
This is Rietveld 408576698