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

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: Manually draw the texture 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_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..d9e293dc3ea2d4d5edef9792818e680cd872a3b1
--- /dev/null
+++ b/remoting/client/gl_cursor_feedback_texture.h
@@ -0,0 +1,33 @@
+// 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 <memory>
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+
+namespace remoting {
+
+class GlCursorFeedbackTexture {
+ public:
+ static GlCursorFeedbackTexture* GetInstance();
+ const uint8_t* GetTexture() const;
+ int GetTextureDiameter() const;
+
+ private:
+ GlCursorFeedbackTexture();
+ ~GlCursorFeedbackTexture();
+
+ friend struct base::DefaultSingletonTraits<GlCursorFeedbackTexture>;
+
+ std::unique_ptr<uint32_t[]> texture_;
+
+ DISALLOW_COPY_AND_ASSIGN(GlCursorFeedbackTexture);
+};
+
+} // namespace remoting
+#endif // REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_

Powered by Google App Engine
This is Rietveld 408576698