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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplay.cpp

Issue 2887353004: WIP mojo typemaps for WTF time types (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
Index: third_party/WebKit/Source/modules/vr/VRDisplay.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
index 5122c99d42d313daa98f7a7ad95c259908966e61..33df28266fe56558acb378ee4e52404a83a7a159 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
@@ -770,7 +770,7 @@ void VRDisplay::ProcessScheduledAnimations(double timestamp) {
}
void VRDisplay::OnVSync(device::mojom::blink::VRPosePtr pose,
- mojo::common::mojom::blink::TimeDeltaPtr time,
+ WTF::TimeDelta time_delta,
int16_t frame_id,
device::mojom::blink::VRVSyncProvider::Status error) {
DVLOG(2) << __FUNCTION__;
@@ -783,8 +783,6 @@ void VRDisplay::OnVSync(device::mojom::blink::VRPosePtr pose,
}
pending_vsync_ = false;
- WTF::TimeDelta time_delta =
- WTF::TimeDelta::FromMicroseconds(time->microseconds);
// Ensure a consistent timebase with document rAF.
if (timebase_ < 0) {
timebase_ = WTF::MonotonicallyIncreasingTime() - time_delta.InSecondsF();
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplay.h ('k') | third_party/WebKit/Source/platform/mojo/Time.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698