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

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

Issue 2499793002: Refactoring how WebVR eye bounds are handled (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
Index: chrome/browser/android/vr_shell/vr_shell_renderer.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_renderer.h b/chrome/browser/android/vr_shell/vr_shell_renderer.h
index 16645e854300a24d3034620bb810b632cbfce286..8243a86253e6604e35d733553e7dbfc86c7545e6 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.h
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.h
@@ -68,22 +68,14 @@ class WebVrRenderer : public BaseRenderer {
void Draw(int texture_handle);
- void UpdateTextureBounds(int eye, const gvr::Rectf& bounds);
-
private:
static constexpr size_t VERTEX_STRIDE = sizeof(float) * 4;
- static constexpr size_t POSITION_ELEMENTS = 2;
- static constexpr size_t TEXCOORD_ELEMENTS = 2;
- static constexpr size_t POSITION_OFFSET = 0;
- static constexpr size_t TEXCOORD_OFFSET = sizeof(float) * 2;
+ static constexpr size_t VERTEX_ELEMENTS = 4;
+ static constexpr size_t VERTEX_OFFSET = 0;
- GLuint src_rect_uniform_handle_;
GLuint tex_uniform_handle_;
GLuint vertex_buffer_;
- gvr::Rectf left_bounds_;
- gvr::Rectf right_bounds_;
-
DISALLOW_COPY_AND_ASSIGN(WebVrRenderer);
};
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.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