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

Unified Diff: remoting/client/gl_render_layer.h

Issue 2148743005: [Remoting Android] Cursor & Cursor Feedback for OpenGL Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback 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
« no previous file with comments | « remoting/client/gl_math.cc ('k') | remoting/client/gl_render_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/gl_render_layer.h
diff --git a/remoting/client/gl_render_layer.h b/remoting/client/gl_render_layer.h
index 785961f0fa6fdf6004d6be9d51e1a498f74ff3d6..0883a6407eb3ddf9e1f4848a746476e17ad32b2c 100644
--- a/remoting/client/gl_render_layer.h
+++ b/remoting/client/gl_render_layer.h
@@ -16,6 +16,8 @@ class GlCanvas;
// canvas is deleted.
class GlRenderLayer {
public:
+ static const int kBytesPerPixel = 4;
+
// texture_id: An integer in range [0, GL_MAX_TEXTURE_IMAGE_UNITS], defining
// which slot to store the texture.
GlRenderLayer(int texture_id, GlCanvas* canvas);
@@ -50,7 +52,7 @@ class GlRenderLayer {
void SetTextureVisibleArea(const std::array<float, 8>& positions);
// Draws the texture on the canvas. Texture must be set before calling Draw().
- void Draw();
+ void Draw(float alpha_multiplier);
private:
int texture_id_;
« no previous file with comments | « remoting/client/gl_math.cc ('k') | remoting/client/gl_render_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698