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

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

Issue 2748293002: WebVR: process animations from posted task to yield for other events (Closed)
Patch Set: Throw shade at WaitForIncomingMethodCall in comment. 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 cccea831701a7b5b749bf2356f28275e3c39432a..c0210b93c8f98dc21ea8228412b3e9cfbd978938 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.cc
@@ -1235,10 +1235,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