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

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

Issue 2901213002: Add SlidingAverage to FPSMeter, use for WebVR prediction time (Closed)
Patch Set: Fix "Complex destructor has an inline body" for = default. 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
Index: chrome/browser/android/vr_shell/vr_shell_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index 1b099a2c3025ba38d0fc1cb555ee8397f2e2e4e0..1612af8ec008395896c601bcd694d3d6e79af272 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -43,6 +43,7 @@ namespace vr_shell {
class FPSMeter;
class MailboxToSurfaceBridge;
+class SlidingAverage;
class UiElement;
class UiScene;
class VrBrowserInterface;
@@ -171,7 +172,7 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void CreateUiSurface();
void OnContentFrameAvailable();
void OnWebVRFrameAvailable();
- bool GetPixelEncodedFrameIndex(uint16_t* frame_index);
+ int64_t GetPredictedFrameTimeNanos();
void OnVSync();
@@ -273,6 +274,9 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
std::unique_ptr<FPSMeter> fps_meter_;
+ std::unique_ptr<SlidingAverage> webvr_js_time_;
+ std::unique_ptr<SlidingAverage> webvr_render_time_;
+
gfx::Point3F pointer_start_;
base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
« no previous file with comments | « chrome/browser/android/vr_shell/fps_meter_unittest.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698