OLD | NEW |
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_SHELL_RENDERER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_RENDERER_H_ |
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_RENDERER_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_RENDERER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "chrome/browser/android/vr_shell/vr_util.h" | 13 #include "chrome/browser/android/vr_shell/vr_math.h" |
14 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr.h" | 14 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr.h" |
15 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr_types.h" | 15 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr_types.h" |
| 16 #include "ui/gl/gl_bindings.h" |
16 | 17 |
17 namespace vr_shell { | 18 namespace vr_shell { |
18 | 19 |
19 typedef unsigned int GLuint; | 20 typedef unsigned int GLuint; |
20 | 21 |
21 enum ShaderID { | 22 enum ShaderID { |
22 SHADER_UNRECOGNIZED = 0, | 23 SHADER_UNRECOGNIZED = 0, |
23 TEXTURE_QUAD_VERTEX_SHADER, | 24 TEXTURE_QUAD_VERTEX_SHADER, |
24 TEXTURE_QUAD_FRAGMENT_SHADER, | 25 TEXTURE_QUAD_FRAGMENT_SHADER, |
25 WEBVR_VERTEX_SHADER, | 26 WEBVR_VERTEX_SHADER, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 private: | 96 private: |
96 std::unique_ptr<TexturedQuadRenderer> textured_quad_renderer_; | 97 std::unique_ptr<TexturedQuadRenderer> textured_quad_renderer_; |
97 std::unique_ptr<WebVrRenderer> webvr_renderer_; | 98 std::unique_ptr<WebVrRenderer> webvr_renderer_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(VrShellRenderer); | 100 DISALLOW_COPY_AND_ASSIGN(VrShellRenderer); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace vr_shell | 103 } // namespace vr_shell |
103 | 104 |
104 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_RENDERER_H_ | 105 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_RENDERER_H_ |
OLD | NEW |