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

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

Issue 2729523002: Re-land^2 WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Rebase to 11e28fd6b9380b77273db51ef0b6ccc7ea341944 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
« 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 c699905019dff22bee1b1b63e2c6d2f13e57e77e..9595e5ffbd270b9bebc8ecbfb8f4be9460a3087d 100644
--- a/device/vr/test/fake_vr_device.cc
+++ b/device/vr/test/fake_vr_device.cc
@@ -62,7 +62,8 @@ void FakeVRDevice::GetVRDevice(
void FakeVRDevice::ResetPose() {}
-void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) {
+void FakeVRDevice::RequestPresent(mojom::VRSubmitFrameClientPtr submit_client,
+ const base::Callback<void(bool)>& callback) {
callback.Run(true);
}
@@ -72,11 +73,14 @@ void FakeVRDevice::ExitPresent() {
OnExitPresent();
}
-void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {}
+void FakeVRDevice::SubmitFrame(int16_t frame_index,
+ const gpu::MailboxHolder& mailbox) {}
void FakeVRDevice::UpdateLayerBounds(int16_t frame_index,
mojom::VRLayerBoundsPtr leftBounds,
- mojom::VRLayerBoundsPtr rightBounds) {}
+ mojom::VRLayerBoundsPtr rightBounds,
+ int16_t source_width,
+ int16_t source_height) {}
void FakeVRDevice::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {}
« 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