|
|
Chromium Code Reviews|
Created:
3 years, 5 months ago by Navid Zolghadr Modified:
3 years, 5 months ago CC:
chromium-reviews, cc-bugs_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionLimit 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 #
Messages
Total messages: 32 (19 generated)
Description was changed from ========== 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 ========== to ========== 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 ==========
The CQ bit was checked by nzolghadr@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
nzolghadr@chromium.org changed reviewers: + tdresser@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
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#newc... cc/surfaces/display.cc:345: if (ui::LatencyInfo::Verify(frame.metadata.latency_info, Should we add a test for this?
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#newc... > cc/surfaces/display.cc:345: if > (ui::LatencyInfo::Verify(frame.metadata.latency_info, > Should we add a test for this? Where do you think the test should be? I couldn't find a good place for it.
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 > > File cc/surfaces/display.cc (right): > > > > > https://codereview.chromium.org/2966803002/diff/1/cc/surfaces/display.cc#newc... > > cc/surfaces/display.cc:345: if > > (ui::LatencyInfo::Verify(frame.metadata.latency_info, > > Should we add a test for this? > > Where do you think the test should be? I couldn't find a good place for it. Why not display_unittest.cc?
The CQ bit was checked by nzolghadr@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
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#newc... cc/surfaces/display.cc:345: if (ui::LatencyInfo::Verify(frame.metadata.latency_info, On 2017/06/30 17:28:51, tdresser wrote: > Should we add a test for this? I had to add a test API to the Display class. It was already one there. So I thought that would be fine.
Thanks - LGTM with nits. https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_uni... File cc/surfaces/display_unittest.cc (right): https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_uni... cc/surfaces/display_unittest.cc:469: // This is the same as LatencyInfo::kMaxLAtencyInfoNumber. kMaxLA -> kMaxLa https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_uni... cc/surfaces/display_unittest.cc:488: display_->stored_latency_info_size_for_testing()); I think this would be a bit easier to read if you had two EXPECT statements inside a conditional.
The CQ bit was checked by nzolghadr@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_uni... File cc/surfaces/display_unittest.cc (right): https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_uni... cc/surfaces/display_unittest.cc:469: // This is the same as LatencyInfo::kMaxLAtencyInfoNumber. On 2017/07/04 16:41:04, tdresser wrote: > kMaxLA -> kMaxLa Done. https://codereview.chromium.org/2966803002/diff/20001/cc/surfaces/display_uni... cc/surfaces/display_unittest.cc:488: display_->stored_latency_info_size_for_testing()); On 2017/07/04 16:41:04, tdresser wrote: > I think this would be a bit easier to read if you had two EXPECT statements > inside a conditional. > Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
nzolghadr@chromium.org changed reviewers: + ajuma@chromium.org
ajuma@chromium.org: Please review changes in cc/surface/*
Description was changed from ========== 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 ========== to ========== 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 ==========
ajuma@chromium.org changed reviewers: + danakj@chromium.org - ajuma@chromium.org
On 2017/07/04 18:33:39, Navid Zolghadr wrote: > mailto:ajuma@chromium.org: Please review changes in > > cc/surface/* +danakj I'm not the best reviewer for cc/surfaces/* changes, so passing this to Dana.
On 2017/07/04 18:58:53, ajuma wrote: > On 2017/07/04 18:33:39, Navid Zolghadr wrote: > > mailto:ajuma@chromium.org: Please review changes in > > > > cc/surface/* > > +danakj > > I'm not the best reviewer for cc/surfaces/* changes, so passing this to Dana. ping
LGTM
The CQ bit was checked by nzolghadr@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tdresser@chromium.org Link to the patchset: https://codereview.chromium.org/2966803002/#ps40001 (title: "Separate the checks for clarity")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1499351526434040,
"parent_rev": "afef048df9416f31f2d90535c3ca946ac3f43b80", "commit_rev":
"20548e47b8881bb32efa2d9b8db489d7b20eaf39"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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/+/20548e47b8881bb32efa2d9b8db4... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/20548e47b8881bb32efa2d9b8db4... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
