| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |