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

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

Issue 2915143002: VR: Soften the floor grid (Closed)
Patch Set: Created 3 years, 7 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
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 5759fea43d1ca351f4300e1d96d6f026a10b7d9f..a8e0d028aa1e25b00b17fc58cdc6aced98824d01 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.h
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.h
@@ -247,7 +247,7 @@ class GradientQuadRenderer : public BaseQuadRenderer {
DISALLOW_COPY_AND_ASSIGN(GradientQuadRenderer);
};
-class GradientGridRenderer : public BaseRenderer {
+class GradientGridRenderer : public BaseQuadRenderer {
public:
GradientGridRenderer();
~GradientGridRenderer() override;
@@ -255,19 +255,18 @@ class GradientGridRenderer : public BaseRenderer {
void Draw(const vr::Mat4f& view_proj_matrix,
SkColor edge_color,
SkColor center_color,
+ SkColor grid_color,
int gridline_count,
float opacity);
private:
- void MakeGridLines(int gridline_count);
-
- GLuint vertex_buffer_ = 0;
GLuint model_view_proj_matrix_handle_;
GLuint scene_radius_handle_;
GLuint center_color_handle_;
GLuint edge_color_handle_;
+ GLuint grid_color_handle_;
GLuint opacity_handle_;
- std::vector<Line3d> grid_lines_;
+ GLuint lines_count_handle_;
DISALLOW_COPY_AND_ASSIGN(GradientGridRenderer);
};
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.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