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

Side by Side Diff: device/vr/test/fake_vr_device.cc

Issue 2729523002: Re-land^2 WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Further cleanups 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/vr/test/fake_vr_device.h" 5 #include "device/vr/test/fake_vr_device.h"
6 6
7 namespace device { 7 namespace device {
8 8
9 FakeVRDevice::FakeVRDevice() { 9 FakeVRDevice::FakeVRDevice() {
10 device_ = mojom::VRDisplayInfo::New(); 10 device_ = mojom::VRDisplayInfo::New();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) { 65 void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) {
66 callback.Run(true); 66 callback.Run(true);
67 } 67 }
68 68
69 void FakeVRDevice::SetSecureOrigin(bool secure_origin) {} 69 void FakeVRDevice::SetSecureOrigin(bool secure_origin) {}
70 70
71 void FakeVRDevice::ExitPresent() { 71 void FakeVRDevice::ExitPresent() {
72 OnExitPresent(); 72 OnExitPresent();
73 } 73 }
74 74
75 void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {} 75 void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose,
76 mojom::VRSubmitFrameClientPtr submit_client) {
77 submit_client->OnSubmitFrameTransferred();
78 submit_client->OnSubmitFrameRendered();
79 }
76 80
77 void FakeVRDevice::UpdateLayerBounds(int16_t frame_index, 81 void FakeVRDevice::UpdateLayerBounds(int16_t frame_index,
78 mojom::VRLayerBoundsPtr leftBounds, 82 mojom::VRLayerBoundsPtr leftBounds,
79 mojom::VRLayerBoundsPtr rightBounds) {} 83 mojom::VRLayerBoundsPtr rightBounds) {}
80 84
81 void FakeVRDevice::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {} 85 void FakeVRDevice::GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) {}
82 86
83 } // namespace device 87 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698