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

Issue 1097633005: FeedbackSignalAccumulator utility class for averaging feedback signals (Closed)

Created:
5 years, 8 months ago by miu
Modified:
5 years, 7 months ago
Reviewers:
hubbe
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FeedbackSignalAccumulator utility class for averaging feedback signals This provides the implementation and tests to maintain an exponentially-decaying average of feedback signal values. This will be used in soon-upcoming changes that will allow screen capture to auto-adapt the frame resolution and frame rate to the user's environment. BUG=156767 Committed: https://crrev.com/4b12889a5d7000febb4b2efc2ad21fc99d6604ca Cr-Commit-Position: refs/heads/master@{#329537}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Naming and comment changes throughout, per hubbe's suggestions. #

Total comments: 10

Patch Set 3 : TimeWeightedAverage --> FeedbackSignalAccumulator, with simplifications! #

Total comments: 4

Patch Set 4 : Elaborated on selection of max update value, plus REBASE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -0 lines) Patch
A content/browser/media/capture/feedback_signal_accumulator.h View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
A content/browser/media/capture/feedback_signal_accumulator.cc View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A content/browser/media/capture/feedback_signal_accumulator_unittest.cc View 1 2 1 chunk +202 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
miu
hubbe: PTAL.
5 years, 8 months ago (2015-04-25 03:28:54 UTC) #2
hubbe
Will look at implementation next go around. https://codereview.chromium.org/1097633005/diff/1/content/browser/media/capture/time_weighted_average.h File content/browser/media/capture/time_weighted_average.h (right): https://codereview.chromium.org/1097633005/diff/1/content/browser/media/capture/time_weighted_average.h#newcode13 content/browser/media/capture/time_weighted_average.h:13: // Utility ...
5 years, 8 months ago (2015-04-27 20:50:42 UTC) #3
miu
Responded to your first round comments. Made a number of naming and comment changes to ...
5 years, 7 months ago (2015-05-05 04:56:59 UTC) #4
hubbe
https://codereview.chromium.org/1097633005/diff/20001/content/browser/media/capture/time_weighted_average.cc File content/browser/media/capture/time_weighted_average.cc (right): https://codereview.chromium.org/1097633005/diff/20001/content/browser/media/capture/time_weighted_average.cc#newcode43 content/browser/media/capture/time_weighted_average.cc:43: Undo(most_recent_value_, May I suggest that it might be easier ...
5 years, 7 months ago (2015-05-06 17:54:49 UTC) #5
miu
Okay, reworked it all as we discussed. PTAL. https://codereview.chromium.org/1097633005/diff/20001/content/browser/media/capture/time_weighted_average.cc File content/browser/media/capture/time_weighted_average.cc (right): https://codereview.chromium.org/1097633005/diff/20001/content/browser/media/capture/time_weighted_average.cc#newcode43 content/browser/media/capture/time_weighted_average.cc:43: Undo(most_recent_value_, ...
5 years, 7 months ago (2015-05-09 22:08:21 UTC) #6
hubbe
https://codereview.chromium.org/1097633005/diff/40001/content/browser/media/capture/feedback_signal_accumulator.cc File content/browser/media/capture/feedback_signal_accumulator.cc (right): https://codereview.chromium.org/1097633005/diff/40001/content/browser/media/capture/feedback_signal_accumulator.cc#newcode41 content/browser/media/capture/feedback_signal_accumulator.cc:41: prior_average_ = average_; Make prior_average_ and prior_update_time_ local variables? ...
5 years, 7 months ago (2015-05-12 19:10:07 UTC) #7
miu
https://codereview.chromium.org/1097633005/diff/40001/content/browser/media/capture/feedback_signal_accumulator.cc File content/browser/media/capture/feedback_signal_accumulator.cc (right): https://codereview.chromium.org/1097633005/diff/40001/content/browser/media/capture/feedback_signal_accumulator.cc#newcode41 content/browser/media/capture/feedback_signal_accumulator.cc:41: prior_average_ = average_; On 2015/05/12 19:10:07, hubbe wrote: > ...
5 years, 7 months ago (2015-05-12 20:58:37 UTC) #8
hubbe
lgtm
5 years, 7 months ago (2015-05-13 00:04:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1097633005/60001
5 years, 7 months ago (2015-05-13 00:05:49 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-13 00:12:22 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-05-13 00:14:10 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4b12889a5d7000febb4b2efc2ad21fc99d6604ca
Cr-Commit-Position: refs/heads/master@{#329537}

Powered by Google App Engine
This is Rietveld 408576698