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

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

Issue 2584343002: WIP: working copy-no-compositor path
Patch Set: StatTracker destructor, delete old magic numbers, mojo export 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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) { 73 void FakeVRDevice::RequestPresent(const base::Callback<void(bool)>& callback) {
74 callback.Run(true); 74 callback.Run(true);
75 } 75 }
76 76
77 void FakeVRDevice::SetSecureOrigin(bool secure_origin) {} 77 void FakeVRDevice::SetSecureOrigin(bool secure_origin) {}
78 78
79 void FakeVRDevice::ExitPresent() { 79 void FakeVRDevice::ExitPresent() {
80 OnExitPresent(); 80 OnExitPresent();
81 } 81 }
82 82
83 void FakeVRDevice::SubmitFrame(mojom::VRPosePtr pose) {} 83 void FakeVRDevice::SubmitFrame(int32_t surface_handle,
84 mojom::VRPosePtr pose,
85 const mojom::VRDisplay::SubmitFrameCallback& call back) {}
84 86
85 void FakeVRDevice::UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, 87 void FakeVRDevice::UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds,
86 mojom::VRLayerBoundsPtr rightBounds) {} 88 mojom::VRLayerBoundsPtr rightBounds) {}
87 89
90 void FakeVRDevice::GetSurfaceHandle(int32_t width, int32_t height,
91 const mojom::VRDisplay::GetSurfaceHandleCall back& callback) {};
92
88 } // namespace device 93 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698