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

Unified Diff: device/vr/test/fake_vr_device.cc

Issue 2510873003: Clean up WebVR RequestPresent and make callback asynchronous. (Closed)
Patch Set: Fix FakeVRDevice Created 4 years, 1 month 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
« no previous file with comments | « device/vr/test/fake_vr_device.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/test/fake_vr_device.cc
diff --git a/device/vr/test/fake_vr_device.cc b/device/vr/test/fake_vr_device.cc
index ca0f8f8a19c44610fd71562f244fc198c00c3879..b50f66d889742642c8f6ab7050ded9be27861e14 100644
--- a/device/vr/test/fake_vr_device.cc
+++ b/device/vr/test/fake_vr_device.cc
@@ -70,10 +70,12 @@ mojom::VRPosePtr FakeVRDevice::GetPose() {
void FakeVRDevice::ResetPose() {}
// TODO(shaobo.yan@intel.com): Will implemenate for VRDeviceServiceImpl tests.
-bool FakeVRDevice::RequestPresent(bool secure_origin) {
- return true;
+void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) {
+ callback.Run(true);
}
+void FakeVRDevice::SetSecureOrigin(bool secure_origin) {}
+
void FakeVRDevice::ExitPresent() {}
void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {}
« no previous file with comments | « device/vr/test/fake_vr_device.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698