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

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

Issue 2624243002: VrShell: Allow native control of UI element opacity. (Closed)
Patch Set: for (auto nit : nits) nit.fix(); Created 3 years, 11 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 b5d7f99561f1e9022c42e3006801a22511d40546..ae4a6a032031a2005d5c130747698c962f004988 100644
--- a/chrome/browser/android/vr_shell/vr_shell_renderer.h
+++ b/chrome/browser/android/vr_shell/vr_shell_renderer.h
@@ -53,12 +53,13 @@ class TexturedQuadRenderer : public BaseRenderer {
// Draw the content rect in the texture quad.
void Draw(int texture_data_handle, const gvr::Mat4f& combined_matrix,
- const Rectf& copy_rect);
+ const Rectf& copy_rect, float opacity);
private:
GLuint combined_matrix_handle_;
GLuint copy_rect_uniform_handle_;
GLuint tex_uniform_handle_;
+ GLuint opacity_handle_;
DISALLOW_COPY_AND_ASSIGN(TexturedQuadRenderer);
};
« 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