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

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

Issue 2970663006: [vr] Use ELEMENT_ARRAY_BUFFERS for quads in VrShellRenderer (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | chrome/browser/android/vr_shell/vr_shell_renderer.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_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 eb11c06e2f48a271687c5fa2e49c285533c16579..9ac13c145044fc95a1eefde36789f6ee4f601a02 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.h
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.h
@@ -17,7 +17,6 @@
namespace vr_shell {
-// TODO(tiborg): set background color through JS API.
constexpr float kFogBrightness = 0.57f;
enum ShaderID {
@@ -75,7 +74,6 @@ class BaseRenderer {
GLuint program_handle_;
GLuint position_handle_;
- GLuint tex_coord_handle_;
DISALLOW_COPY_AND_ASSIGN(BaseRenderer);
};
@@ -92,6 +90,7 @@ class BaseQuadRenderer : public BaseRenderer {
const gfx::Transform& view_proj_matrix);
static GLuint vertex_buffer_;
+ static GLuint index_buffer_;
DISALLOW_COPY_AND_ASSIGN(BaseQuadRenderer);
};
@@ -206,6 +205,7 @@ class ControllerRenderer : public BaseRenderer {
private:
GLuint model_view_proj_matrix_handle_;
+ GLuint tex_coord_handle_;
GLuint tex_uniform_handle_;
GLuint opacity_handle_;
GLuint indices_buffer_ = 0;
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698