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

Issue 2276743002: LatencyInfo mojo: Avoid extra copy of LatencyComponents (Closed)

Created:
4 years, 4 months ago by Fady Samuel
Modified:
4 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tdresser+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

LatencyInfo mojo: Avoid extra copy of LatencyComponents Prior to ArrayDataView, during deserialization, we read latency components outs into a mojo::Array and then read the mojo array out into LatencyInfo's latency_components_. This results in an unnecessary extra copy and is not compatible with usage in blink. This CL moves us towards using ArrayDataView. BUG=629566 Committed: https://crrev.com/b8cd385fb7004724f431d99af4f410adcd51888e Cr-Commit-Position: refs/heads/master@{#414157}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M ui/events/mojo/latency_info_struct_traits.cc View 1 chunk +12 lines, -6 lines 1 comment Download

Messages

Total messages: 19 (6 generated)
Fady Samuel
4 years, 4 months ago (2016-08-23 20:19:24 UTC) #2
xlai (Olivia)
Thanks for the change! Non-owner lgtm.
4 years, 4 months ago (2016-08-23 20:42:54 UTC) #3
Fady Samuel
+tsepez@ for security review +yzshen@ FYI
4 years, 4 months ago (2016-08-23 20:47:15 UTC) #5
yzshen1
https://codereview.chromium.org/2276743002/diff/1/ui/events/mojo/latency_info_struct_traits.cc File ui/events/mojo/latency_info_struct_traits.cc (right): https://codereview.chromium.org/2276743002/diff/1/ui/events/mojo/latency_info_struct_traits.cc#newcode283 ui/events/mojo/latency_info_struct_traits.cc:283: components.GetDataView(i, &component_pair); This change itself LGTM. Performance fyi: It ...
4 years, 4 months ago (2016-08-23 21:23:05 UTC) #6
Tom Sepez
On 2016/08/23 21:23:05, yzshen1 wrote: > https://codereview.chromium.org/2276743002/diff/1/ui/events/mojo/latency_info_struct_traits.cc > File ui/events/mojo/latency_info_struct_traits.cc (right): > > https://codereview.chromium.org/2276743002/diff/1/ui/events/mojo/latency_info_struct_traits.cc#newcode283 > ...
4 years, 4 months ago (2016-08-24 01:10:30 UTC) #7
Fady Samuel
On 2016/08/24 01:10:30, Tom Sepez (Offsite til 8-23) wrote: > On 2016/08/23 21:23:05, yzshen1 wrote: ...
4 years, 4 months ago (2016-08-24 01:20:31 UTC) #8
Tom Sepez
Currently LGTM.
4 years, 4 months ago (2016-08-24 16:02:54 UTC) #9
Fady Samuel
On 2016/08/24 16:02:54, Tom Sepez wrote: > Currently LGTM. Thanks all! I'm CQ'ing now.
4 years, 4 months ago (2016-08-24 16:05:12 UTC) #10
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/2276743002/1
4 years, 4 months ago (2016-08-24 16:05:38 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/128901)
4 years, 4 months ago (2016-08-24 18:16:04 UTC) #14
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/2276743002/1
4 years, 4 months ago (2016-08-24 18:18:45 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-24 21:48:00 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 21:49:27 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b8cd385fb7004724f431d99af4f410adcd51888e
Cr-Commit-Position: refs/heads/master@{#414157}

Powered by Google App Engine
This is Rietveld 408576698