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

Unified Diff: remoting/client/gl_canvas.h

Issue 2148743005: [Remoting Android] Cursor & Cursor Feedback for OpenGL Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swap BGRA to RGBA Created 4 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
Index: remoting/client/gl_canvas.h
diff --git a/remoting/client/gl_canvas.h b/remoting/client/gl_canvas.h
index 5a0627376bf24f2ad844dca1cb6aec910fa966fc..8443f89a6c0568bb9f077a1033eef12432c33658 100644
--- a/remoting/client/gl_canvas.h
+++ b/remoting/client/gl_canvas.h
@@ -50,7 +50,13 @@ class GlCanvas {
// vertex_buffer: reference to the 2x4x2 float vertex buffer.
// [ four (x, y) normalized vertex positions on the canvas,
// four (x, y) vertex positions to define the visible area ]
- void DrawTexture(int texture_id, GLuint texture_handle, GLuint vertex_buffer);
+ // alpha_multiplier: Will be multiplied with the alpha channel of the texture.
+ // Passing 1 means no change of the transparency of the
+ // texture.
+ void DrawTexture(int texture_id,
+ GLuint texture_handle,
+ GLuint vertex_buffer,
+ float alpha_multiplier);
// Returns the version number of current OpenGL ES context. Either 2 or 3.
int GetGlVersion() const;
@@ -69,6 +75,7 @@ class GlCanvas {
// Locations of the corresponding shader attributes.
GLuint transform_location_;
GLuint texture_location_;
+ GLuint alpha_multiplier_location_;
GLuint position_location_;
GLuint tex_cord_location_;

Powered by Google App Engine
This is Rietveld 408576698