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

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

Issue 2774673003: WebVR: process animations from posted task to yield for other events (Closed)
Patch Set: Merge fix: add missing include file Created 3 years, 9 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.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.cc b/chrome/browser/android/vr_shell/vr_shell_gl.cc
index 336d2b0472f4ce8c03bafe98d7629b20023598a8..ae068e4e7b93bc407e1298cacfd1f800272a4653 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
@@ -1130,10 +1130,10 @@ void VrShellGl::UpdateScene(std::unique_ptr<base::ListValue> commands) {
void VrShellGl::SendVSync(base::TimeDelta time,
const GetVSyncCallback& callback) {
- TRACE_EVENT0("input", "VrShellGl::SendVSync");
-
uint8_t frame_index = frame_index_++;
+ TRACE_EVENT1("input", "VrShellGl::SendVSync", "frame", frame_index);
+
gvr::ClockTimePoint target_time = gvr::GvrApi::GetTimePointNow();
target_time.monotonic_system_time_nanos += kPredictionTimeWithoutVsyncNanos;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.h » ('j') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698