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_gl_util.h

Issue 2598093002: Update GVR to 1.10.0 (Closed)
Patch Set: Created 3 years, 12 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_GL_UTIL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_
7 7
8 #include <array> 8 #include <array>
9 9
10 #include "third_party/gvr-android-sdk/src/ndk/include/vr/gvr/capi/include/gvr_ty pes.h" 10 #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/ gvr_types.h"
11 #include "ui/gl/gl_bindings.h" 11 #include "ui/gl/gl_bindings.h"
12 12
13 namespace vr_shell { 13 namespace vr_shell {
14 14
15 std::array<float, 16> MatrixToGLArray(const gvr::Mat4f& matrix); 15 std::array<float, 16> MatrixToGLArray(const gvr::Mat4f& matrix);
16 16
17 gvr::Rectf ModulateRect(const gvr::Rectf& rect, float width, float height); 17 gvr::Rectf ModulateRect(const gvr::Rectf& rect, float width, float height);
18 18
19 gvr::Recti CalculatePixelSpaceRect(const gvr::Sizei& texture_size, 19 gvr::Recti CalculatePixelSpaceRect(const gvr::Sizei& texture_size,
20 const gvr::Rectf& texture_rect); 20 const gvr::Rectf& texture_rect);
21 21
22 // Compile a shader. 22 // Compile a shader.
23 GLuint CompileShader(GLenum shader_type, 23 GLuint CompileShader(GLenum shader_type,
24 const GLchar* shader_source, 24 const GLchar* shader_source,
25 std::string& error); 25 std::string& error);
26 26
27 // Compile and link a program. 27 // Compile and link a program.
28 GLuint CreateAndLinkProgram(GLuint vertex_shader_handle, 28 GLuint CreateAndLinkProgram(GLuint vertex_shader_handle,
29 GLuint fragment_shader_handle, 29 GLuint fragment_shader_handle,
30 std::string& error); 30 std::string& error);
31 31
32 } // namespace vr_shell 32 } // namespace vr_shell
33 33
34 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_ 34 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_controller.cc ('k') | chrome/browser/android/vr_shell/vr_math.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698