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

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

Issue 2738683002: WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Less hacked up version 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..896f2bbd860169c5f078857fb45d6a83a26a3d34 100644
--- a/device/vr/test/fake_vr_device.cc
+++ b/device/vr/test/fake_vr_device.cc
@@ -72,11 +72,18 @@ void FakeVRDevice::ExitPresent() {
OnExitPresent();
}
-void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {}
+void FakeVRDevice::SubmitFrame(int16_t frame_index,
+ const gpu::MailboxHolder& mailbox,
+ mojom::VRSubmitFrameClientPtr submit_client) {
+ submit_client->OnSubmitFrameTransferred();
+ submit_client->OnSubmitFrameRendered();
+}
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