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

Unified Diff: chrome/browser/android/vr_shell/vr_gl_util.h

Issue 2814443004: Refactor VR math off of GVR types, onto gfx types where possible. (Closed)
Patch Set: Fix tests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_controller.cc ('k') | chrome/browser/android/vr_shell/vr_gl_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_gl_util.h
diff --git a/chrome/browser/android/vr_shell/vr_gl_util.h b/chrome/browser/android/vr_shell/vr_gl_util.h
index 61e8e9995b8d5bad5ebef2fa6a178a7fc48fd1a8..59052929a0000b0556bbbb6feb1345b84a24d340 100644
--- a/chrome/browser/android/vr_shell/vr_gl_util.h
+++ b/chrome/browser/android/vr_shell/vr_gl_util.h
@@ -8,17 +8,15 @@
#include <array>
#include <string>
-#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
+#include "device/vr/vr_types.h"
#include "ui/gl/gl_bindings.h"
namespace vr_shell {
-std::array<float, 16> MatrixToGLArray(const gvr::Mat4f& matrix);
+std::array<float, 16> MatrixToGLArray(const vr::Mat4f& matrix);
-gvr::Rectf ModulateRect(const gvr::Rectf& rect, float width, float height);
-
-gvr::Recti CalculatePixelSpaceRect(const gvr::Sizei& texture_size,
- const gvr::Rectf& texture_rect);
+gfx::Rect CalculatePixelSpaceRect(const gfx::Size& texture_size,
+ const gfx::RectF& texture_rect);
// Compile a shader.
GLuint CompileShader(GLenum shader_type,
« no previous file with comments | « chrome/browser/android/vr_shell/vr_controller.cc ('k') | chrome/browser/android/vr_shell/vr_gl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698