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

Unified Diff: remoting/client/gl_cursor_feedback_texture.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_cursor_feedback.cc ('k') | remoting/client/gl_cursor_feedback_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/gl_cursor_feedback_texture.h
diff --git a/remoting/client/gl_cursor_feedback_texture.h b/remoting/client/gl_cursor_feedback_texture.h
new file mode 100644
index 0000000000000000000000000000000000000000..1826d2154a24ee1c45ebff2e3e0ed748ec23642e
--- /dev/null
+++ b/remoting/client/gl_cursor_feedback_texture.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_
+#define REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_
+
+#include <vector>
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+
+namespace remoting {
+
+// This is a singleton for generating and holding the the cursor feedback
+// texture.
+class GlCursorFeedbackTexture {
+ public:
+ static const int kTextureWidth;
+
+ static GlCursorFeedbackTexture* GetInstance();
+
+ const std::vector<uint8_t>& GetTexture() const;
+
+ private:
+ GlCursorFeedbackTexture();
+ ~GlCursorFeedbackTexture();
+
+ friend struct base::DefaultSingletonTraits<GlCursorFeedbackTexture>;
+
+ std::vector<uint8_t> texture_;
+
+ DISALLOW_COPY_AND_ASSIGN(GlCursorFeedbackTexture);
+};
+
+} // namespace remoting
+#endif // REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_
« no previous file with comments | « remoting/client/gl_cursor_feedback.cc ('k') | remoting/client/gl_cursor_feedback_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698