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

Side by Side Diff: remoting/client/display/gl_cursor.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_H_ 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_CURSOR_H_
6 #define REMOTING_CLIENT_DISPLAY_GL_CURSOR_H_ 6 #define REMOTING_CLIENT_DISPLAY_GL_CURSOR_H_
7 7
8 #include <array> 8 #include <array>
9 #include <cstdint> 9 #include <cstdint>
10 #include <memory> 10 #include <memory>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 std::unique_ptr<uint8_t[]> current_cursor_data_; 54 std::unique_ptr<uint8_t[]> current_cursor_data_;
55 int current_cursor_data_size_ = 0; 55 int current_cursor_data_size_ = 0;
56 int current_cursor_width_ = 0; 56 int current_cursor_width_ = 0;
57 int current_cursor_height_ = 0; 57 int current_cursor_height_ = 0;
58 int current_cursor_hotspot_x_ = 0; 58 int current_cursor_hotspot_x_ = 0;
59 int current_cursor_hotspot_y_ = 0; 59 int current_cursor_hotspot_y_ = 0;
60 60
61 float cursor_x_ = 0; 61 float cursor_x_ = 0;
62 float cursor_y_ = 0; 62 float cursor_y_ = 0;
63 63
64 base::ThreadChecker thread_checker_; 64 base::WeakPtr<Drawable> weak_ptr_;
Yuwei 2017/01/13 01:29:00 Removed thread_checker_ entirely since it's only u
Sergey Ulanov 2017/01/13 02:03:10 It still can be useful, even if used in one place:
Sergey Ulanov 2017/01/13 02:06:19 Also, why is it called only in Draw()? Is there an
Yuwei 2017/01/13 02:21:08 I don't know... Scott may know better O_o
joedow 2017/01/13 16:09:34 Threadchecker was added to ensure the WeakPtr() wa
nicholss 2017/01/13 16:45:01 For the current usage, these classes could get awa
65 base::WeakPtrFactory<Drawable> weak_factory_; 65 base::WeakPtrFactory<Drawable> weak_factory_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(GlCursor); 67 DISALLOW_COPY_AND_ASSIGN(GlCursor);
68 }; 68 };
69 69
70 } // namespace remoting 70 } // namespace remoting
71 #endif // REMOTING_CLIENT_DISPLAY_GL_CURSOR_H_ 71 #endif // REMOTING_CLIENT_DISPLAY_GL_CURSOR_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/display/gl_cursor.cc » ('j') | remoting/client/display/gl_cursor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698