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

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: Drop Skia dependencies 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_render_layer.h
diff --git a/remoting/client/gl_render_layer.h b/remoting/client/gl_render_layer.h
index 785961f0fa6fdf6004d6be9d51e1a498f74ff3d6..5d298cf24deee6612273b25454b5b77cfffdcbca 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:
+ enum { kBytesPerPixelRGB32 = 4 };
Sergey Ulanov 2016/07/21 19:28:48 Don't use enum for define constants. Call it kByte
Yuwei 2016/07/21 21:44:42 Done.
+
// 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_;

Powered by Google App Engine
This is Rietveld 408576698