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

Unified Diff: device/vr/vr_display_impl.cc

Issue 2624633002: Remove Sync GetPose VRService call, implement VRVSyncProvider (Closed)
Patch Set: Finish implementation Created 3 years, 11 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: device/vr/vr_display_impl.cc
diff --git a/device/vr/vr_display_impl.cc b/device/vr/vr_display_impl.cc
index b4025dd80af2b7b757cea111322fed066f377f50..db268c94798ef9687189d9448a3fc279631e8459 100644
--- a/device/vr/vr_display_impl.cc
+++ b/device/vr/vr_display_impl.cc
@@ -27,15 +27,6 @@ VRDisplayImpl::~VRDisplayImpl() {
device_->RemoveDisplay(this);
}
-void VRDisplayImpl::GetPose(const GetPoseCallback& callback) {
- if (!device_->IsAccessAllowed(this)) {
- callback.Run(nullptr);
- return;
- }
-
- callback.Run(device_->GetPose());
-}
-
void VRDisplayImpl::ResetPose() {
if (!device_->IsAccessAllowed(this))
return;
@@ -83,4 +74,11 @@ void VRDisplayImpl::UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds,
device_->UpdateLayerBounds(std::move(left_bounds), std::move(right_bounds));
}
+
+void VRDisplayImpl::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {
+ if (!device_->IsAccessAllowed(this)) {
+ return;
+ }
+ device_->GetVRVSyncProvider(std::move(request));
+}
}

Powered by Google App Engine
This is Rietveld 408576698