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

Unified Diff: chrome/browser/android/vr_shell/fps_meter.h

Issue 2892813002: Fix off-by-one in fps_meter, fix unit test to catch this. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/fps_meter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/fps_meter.h
diff --git a/chrome/browser/android/vr_shell/fps_meter.h b/chrome/browser/android/vr_shell/fps_meter.h
index 8c736d084504b41a0bbcc824cdee77f4adfe4d69..c52f4100ee599367977f2f1066de461f181be81c 100644
--- a/chrome/browser/android/vr_shell/fps_meter.h
+++ b/chrome/browser/android/vr_shell/fps_meter.h
@@ -24,6 +24,9 @@ class FPSMeter {
double GetFPS() const;
+ // Get sliding window size for tests.
+ size_t GetNumFrameTimes();
+
private:
size_t current_index_;
int64_t total_time_us_;
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/fps_meter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698