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

Side by Side Diff: remoting/client/display/gl_desktop.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_DESKTOP_H_ 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_DESKTOP_H_
6 #define REMOTING_CLIENT_DISPLAY_GL_DESKTOP_H_ 6 #define REMOTING_CLIENT_DISPLAY_GL_DESKTOP_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 private: 40 private:
41 struct GlDesktopTextureContainer; 41 struct GlDesktopTextureContainer;
42 42
43 void ReallocateTextures(const webrtc::DesktopSize& size); 43 void ReallocateTextures(const webrtc::DesktopSize& size);
44 44
45 std::vector<std::unique_ptr<GlDesktopTextureContainer>> textures_; 45 std::vector<std::unique_ptr<GlDesktopTextureContainer>> textures_;
46 46
47 webrtc::DesktopSize last_desktop_size_; 47 webrtc::DesktopSize last_desktop_size_;
48 int max_texture_size_ = 0; 48 int max_texture_size_ = 0;
49 base::WeakPtr<Canvas> canvas_ = nullptr; 49 base::WeakPtr<Canvas> canvas_ = nullptr;
50 base::ThreadChecker thread_checker_; 50 base::WeakPtr<Drawable> weak_ptr_;
51 base::WeakPtrFactory<Drawable> weak_factory_; 51 base::WeakPtrFactory<Drawable> weak_factory_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(GlDesktop); 53 DISALLOW_COPY_AND_ASSIGN(GlDesktop);
54 }; 54 };
55 55
56 } // namespace remoting 56 } // namespace remoting
57 57
58 #endif // REMOTING_CLIENT_DISPLAY_GL_DESKTOP_H_ 58 #endif // REMOTING_CLIENT_DISPLAY_GL_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698