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

Issue 2804943003: [vr] Add a frame rate counter for the vr UI (Closed)

Created:
3 years, 8 months ago by Ian Vollick
Modified:
3 years, 8 months ago
Reviewers:
mthiesse, billorr
CC:
chromium-reviews, cc-bugs_chromium.org, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[vr] Add a frame rate counter for the vr UI With this CL, we only gather the info needed for an FPS meter. It does not currently output anything (this is future work. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2804943003 Cr-Commit-Position: refs/heads/master@{#463931} Committed: https://chromium.googlesource.com/chromium/src/+/47619f8e9971f86a0478b32190a004b9a53141c1

Patch Set 1 #

Patch Set 2 : rebase. #

Patch Set 3 : nice comment. #

Patch Set 4 : rebase #

Patch Set 5 : rebase for real #

Total comments: 2

Patch Set 6 : add simplified fps meter #

Patch Set 7 : missed a file. #

Patch Set 8 : Actually implement CanComputeFPS #

Total comments: 4

Patch Set 9 : dcheck always on #

Patch Set 10 : cache fewer deltas #

Patch Set 11 : avoid floating point math #

Patch Set 12 : () #

Total comments: 1

Patch Set 13 : dcheck is on #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -3 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
A chrome/browser/android/vr_shell/fps_meter.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/fps_meter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/fps_meter_unittest.cc View 1 2 3 4 5 6 7 1 chunk +80 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (25 generated)
Ian Vollick
On 2017/04/06 20:57:03, Ian Vollick wrote: > mailto:vollick@chromium.org changed reviewers: > + mailto:brianderson@chromium.org, mailto:mthiesse@chromium.org My ...
3 years, 8 months ago (2017-04-06 20:58:06 UTC) #4
mthiesse
This counter assumes that our framerate is exactly 60fps, which it approximately is at the ...
3 years, 8 months ago (2017-04-07 15:36:33 UTC) #11
Ian Vollick
On 2017/04/07 15:36:33, mthiesse wrote: > This counter assumes that our framerate is exactly 60fps, ...
3 years, 8 months ago (2017-04-07 15:44:12 UTC) #12
Ian Vollick
On 2017/04/07 15:44:12, Ian Vollick wrote: > On 2017/04/07 15:36:33, mthiesse wrote: > > This ...
3 years, 8 months ago (2017-04-10 13:25:26 UTC) #18
mthiesse
lgtm https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/fps_meter.cc File chrome/browser/android/vr_shell/fps_meter.cc (right): https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/fps_meter.cc#newcode52 chrome/browser/android/vr_shell/fps_meter.cc:52: for (const auto& delta : frame_times_) Instead of ...
3 years, 8 months ago (2017-04-11 19:14:36 UTC) #19
mthiesse
https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode151 chrome/browser/android/vr_shell/vr_shell_gl.cc:151: #ifndef NDEBUG Also, consider using DCHECK_ALWAYS_ON? Might be useful ...
3 years, 8 months ago (2017-04-11 19:17:13 UTC) #20
billorr
https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/fps_meter.cc File chrome/browser/android/vr_shell/fps_meter.cc (right): https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/fps_meter.cc#newcode52 chrome/browser/android/vr_shell/fps_meter.cc:52: for (const auto& delta : frame_times_) On 2017/04/11 19:14:36, ...
3 years, 8 months ago (2017-04-12 00:40:03 UTC) #22
mthiesse
On 2017/04/12 00:40:03, billorr wrote: > https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/fps_meter.cc > File chrome/browser/android/vr_shell/fps_meter.cc (right): > > https://codereview.chromium.org/2804943003/diff/140001/chrome/browser/android/vr_shell/fps_meter.cc#newcode52 > ...
3 years, 8 months ago (2017-04-12 01:11:18 UTC) #23
Ian Vollick
billorr suggested storing total microseconds as int64_t which seems nice to me. how do you ...
3 years, 8 months ago (2017-04-12 01:25:06 UTC) #26
mthiesse
Avoiding floats sgtm https://codereview.chromium.org/2804943003/diff/220001/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2804943003/diff/220001/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode151 chrome/browser/android/vr_shell/vr_shell_gl.cc:151: #if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) Oops, I ...
3 years, 8 months ago (2017-04-12 02:39:00 UTC) #32
Ian Vollick
On 2017/04/12 02:39:00, mthiesse wrote: > Avoiding floats sgtm > > https://codereview.chromium.org/2804943003/diff/220001/chrome/browser/android/vr_shell/vr_shell_gl.cc > File chrome/browser/android/vr_shell/vr_shell_gl.cc ...
3 years, 8 months ago (2017-04-12 03:07:23 UTC) #33
mthiesse
lgtm
3 years, 8 months ago (2017-04-12 03:15:30 UTC) #34
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/2804943003/240001
3 years, 8 months ago (2017-04-12 03:41:13 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 04:42:52 UTC) #39
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/47619f8e9971f86a0478b32190a0...

Powered by Google App Engine
This is Rietveld 408576698