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

Side by Side Diff: chrome/browser/android/vr_shell/vr_gesture.h

Issue 2384593002: Encode frame number in pixel data for pose sync (Closed)
Patch Set: bajones #4: use contextGL(), auto-restore state, add poseNum to VRPosePtr Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_
7 7
8 #include "third_party/WebKit/public/web/WebInputEvent.h" 8 #include "third_party/WebKit/public/web/WebInputEvent.h"
9 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g vr_types.h" 9 #include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_ty pes.h"
10 10
11 using blink::WebInputEvent; 11 using blink::WebInputEvent;
12 12
13 namespace vr_shell { 13 namespace vr_shell {
14 14
15 typedef struct { 15 typedef struct {
16 gvr_vec3f delta; 16 gvr_vec3f delta;
17 int type; 17 int type;
18 } GestureAngularMove; 18 } GestureAngularMove;
19 19
(...skipping 25 matching lines...) Expand all
45 GestureButtonsChange buttons; 45 GestureButtonsChange buttons;
46 GestureAngularMove move; 46 GestureAngularMove move;
47 } details; 47 } details;
48 gvr::Vec2f velocity; 48 gvr::Vec2f velocity;
49 gvr::Vec2f displacement; 49 gvr::Vec2f displacement;
50 }; 50 };
51 51
52 } // namespace vr_shell 52 } // namespace vr_shell
53 53
54 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ 54 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698