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

Issue 2966803002: Limit the size of latency info storage (Closed)

Created:
3 years, 5 months ago by Navid Zolghadr
Modified:
3 years, 5 months ago
Reviewers:
danakj, tdresser
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Limit the size of latency info storage When there is no swaping we copy back the latency infos from the frame back into the stored latency info list. If this list grows beyond a particular size we never use it anyways. So we can just not store if the size ever grows more than the threshold. BUG=732979 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2966803002 Cr-Commit-Position: refs/heads/master@{#484609} Committed: https://chromium.googlesource.com/chromium/src/+/20548e47b8881bb32efa2d9b8db489d7b20eaf39

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add unit test #

Total comments: 4

Patch Set 3 : Separate the checks for clarity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -3 lines) Patch
M cc/surfaces/display.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M cc/surfaces/display.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M cc/surfaces/display_unittest.cc View 1 2 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
Navid Zolghadr
3 years, 5 months ago (2017-06-30 16:54:16 UTC) #5
tdresser
https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc#newcode345 cc/surfaces/display.cc:345: if (ui::LatencyInfo::Verify(frame.metadata.latency_info, Should we add a test for this?
3 years, 5 months ago (2017-06-30 17:28:51 UTC) #8
Navid Zolghadr
On 2017/06/30 17:28:51, tdresser wrote: > https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc > File cc/surfaces/display.cc (right): > > https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc#newcode345 > ...
3 years, 5 months ago (2017-06-30 17:45:10 UTC) #9
tdresser
On 2017/06/30 17:45:10, Navid Zolghadr wrote: > On 2017/06/30 17:28:51, tdresser wrote: > > https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc ...
3 years, 5 months ago (2017-06-30 18:00:43 UTC) #10
Navid Zolghadr
ptal https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc File cc/surfaces/display.cc (right): https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc#newcode345 cc/surfaces/display.cc:345: if (ui::LatencyInfo::Verify(frame.metadata.latency_info, On 2017/06/30 17:28:51, tdresser wrote: > ...
3 years, 5 months ago (2017-07-04 16:25:47 UTC) #13
tdresser
Thanks - LGTM with nits. https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_unittest.cc File cc/surfaces/display_unittest.cc (right): https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_unittest.cc#newcode469 cc/surfaces/display_unittest.cc:469: // This is the ...
3 years, 5 months ago (2017-07-04 16:41:04 UTC) #14
Navid Zolghadr
https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_unittest.cc File cc/surfaces/display_unittest.cc (right): https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_unittest.cc#newcode469 cc/surfaces/display_unittest.cc:469: // This is the same as LatencyInfo::kMaxLAtencyInfoNumber. On 2017/07/04 ...
3 years, 5 months ago (2017-07-04 17:16:28 UTC) #17
Navid Zolghadr
ajuma@chromium.org: Please review changes in cc/surface/*
3 years, 5 months ago (2017-07-04 18:33:39 UTC) #21
ajuma
On 2017/07/04 18:33:39, Navid Zolghadr wrote: > mailto:ajuma@chromium.org: Please review changes in > > cc/surface/* ...
3 years, 5 months ago (2017-07-04 18:58:53 UTC) #24
Navid Zolghadr
On 2017/07/04 18:58:53, ajuma wrote: > On 2017/07/04 18:33:39, Navid Zolghadr wrote: > > mailto:ajuma@chromium.org: ...
3 years, 5 months ago (2017-07-06 14:08:49 UTC) #25
danakj
LGTM
3 years, 5 months ago (2017-07-06 14:28:11 UTC) #26
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/2966803002/40001
3 years, 5 months ago (2017-07-06 14:32:19 UTC) #29
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 15:41:43 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/20548e47b8881bb32efa2d9b8db4...

Powered by Google App Engine
This is Rietveld 408576698