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

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

Issue 2494983003: Mojo C++ bindings: switch device/vr mojom target to use STL/WTF types. (Closed)
Patch Set: . 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/android/gvr/gvr_device.cc ('k') | third_party/WebKit/Source/modules/vr/VRFrameData.cpp » ('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 a011c7735b1abca6ee698342cfa78a30cd291758..6d01e490199cb1a17ade3994cfb337aff76c9ec1 100644
--- a/device/vr/test/fake_vr_device.cc
+++ b/device/vr/test/fake_vr_device.cc
@@ -39,7 +39,7 @@ mojom::VREyeParametersPtr FakeVRDevice::InitEye(float fov,
eye->fieldOfView->leftDegrees = fov;
eye->fieldOfView->rightDegrees = fov;
- eye->offset = mojo::Array<float>::New(3);
+ eye->offset.resize(3);
eye->offset[0] = offset;
eye->offset[1] = 0.0f;
eye->offset[2] = 0.0f;
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | third_party/WebKit/Source/modules/vr/VRFrameData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698