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

Side by Side Diff: remoting/client/display/gl_cursor_feedback.h

Issue 2623413004: [Remoting Android] Fix thread issue with OpenGL drawable (Closed)
Patch Set: PTAL Point Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_DISPLAY_GL_CURSOR_FEEDBACK_H_ 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_CURSOR_FEEDBACK_H_
6 #define REMOTING_CLIENT_DISPLAY_GL_CURSOR_FEEDBACK_H_ 6 #define REMOTING_CLIENT_DISPLAY_GL_CURSOR_FEEDBACK_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 23 matching lines...) Expand all
34 int GetZIndex() override; 34 int GetZIndex() override;
35 base::WeakPtr<Drawable> GetWeakPtr() override; 35 base::WeakPtr<Drawable> GetWeakPtr() override;
36 36
37 private: 37 private:
38 std::unique_ptr<GlRenderLayer> layer_; 38 std::unique_ptr<GlRenderLayer> layer_;
39 float max_diameter_ = 0; 39 float max_diameter_ = 0;
40 float cursor_x_ = 0; 40 float cursor_x_ = 0;
41 float cursor_y_ = 0; 41 float cursor_y_ = 0;
42 base::TimeTicks animation_start_time_; 42 base::TimeTicks animation_start_time_;
43 43
44 base::ThreadChecker thread_checker_; 44 base::WeakPtr<Drawable> weak_ptr_;
45 base::WeakPtrFactory<Drawable> weak_factory_; 45 base::WeakPtrFactory<Drawable> weak_factory_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(GlCursorFeedback); 47 DISALLOW_COPY_AND_ASSIGN(GlCursorFeedback);
48 }; 48 };
49 49
50 } // namespace remoting 50 } // namespace remoting
51 #endif // REMOTING_CLIENT_DISPLAY_GL_CURSOR_FEEDBACK_H_ 51 #endif // REMOTING_CLIENT_DISPLAY_GL_CURSOR_FEEDBACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698