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

Unified Diff: remoting/client/gl_cursor_feedback.h

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Updating the include define for the new path. Created 3 years, 12 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.h
diff --git a/remoting/client/gl_cursor_feedback.h b/remoting/client/gl_cursor_feedback.h
deleted file mode 100644
index 6405efcee7dc4c92be956b0d89bbda5c8271ad7b..0000000000000000000000000000000000000000
--- a/remoting/client/gl_cursor_feedback.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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_OPENGL_GL_CURSOR_FEEDBACK_H_
-#define REMOTING_CLIENT_OPENGL_GL_CURSOR_FEEDBACK_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/time/time.h"
-
-namespace remoting {
-
-class GlCanvas;
-class GlRenderLayer;
-
-// This class draws the cursor feedback on the canvas.
-class GlCursorFeedback {
- public:
- GlCursorFeedback();
- ~GlCursorFeedback();
-
- // Sets the canvas on which the cursor feedback will be drawn. Resumes the
- // feedback texture to the context of the new canvas.
- // If |canvas| is nullptr, nothing will happen when calling Draw().
- void SetCanvas(GlCanvas* canvas);
-
- void StartAnimation(float x, float y, float diameter);
-
- // Returns true if animation is not finished, false otherwise. Does nothing
- // if the animation has stopped.
- bool Draw();
-
- private:
- std::unique_ptr<GlRenderLayer> layer_;
- float max_diameter_ = 0;
- float cursor_x_ = 0;
- float cursor_y_ = 0;
- base::TimeTicks animation_start_time_;
-
- DISALLOW_COPY_AND_ASSIGN(GlCursorFeedback);
-};
-
-} // namespace remoting
-#endif // REMOTING_CLIENT_OPENGL_GL_CURSOR_FEEDBACK_H_

Powered by Google App Engine
This is Rietveld 408576698