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

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

Issue 2335643002: Add VR Shell animation classes and unit test. (Closed)
Patch Set: Add VR Shell animation classes and unit test. Created 4 years, 3 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_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
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_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698