| 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_OPENGL_GL_DESKTOP_H_ | 5 #ifndef REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_ |
| 6 #define REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_ | 6 #define REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| 13 | 13 |
| 14 namespace webrtc { | 14 namespace webrtc { |
| 15 class DesktopFrame; | 15 class DesktopFrame; |
| 16 } // namespace webrtc | 16 } // namespace webrtc |
| 17 | 17 |
| 18 namespace remoting { | 18 namespace remoting { |
| 19 | 19 |
| 20 class GlCanvas; | 20 class GlCanvas; |
| 21 class GlRenderLayer; | |
| 22 | 21 |
| 23 // This class draws the desktop on the canvas. | 22 // This class draws the desktop on the canvas. |
| 24 class GlDesktop { | 23 class GlDesktop { |
| 25 public: | 24 public: |
| 26 GlDesktop(); | 25 GlDesktop(); |
| 27 virtual ~GlDesktop(); | 26 virtual ~GlDesktop(); |
| 28 | 27 |
| 29 // |frame| can be either a full frame or updated regions only frame. | 28 // |frame| can be either a full frame or updated regions only frame. |
| 30 void SetVideoFrame(const webrtc::DesktopFrame& frame); | 29 void SetVideoFrame(const webrtc::DesktopFrame& frame); |
| 31 | 30 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 47 webrtc::DesktopSize last_desktop_size_; | 46 webrtc::DesktopSize last_desktop_size_; |
| 48 int max_texture_size_ = 0; | 47 int max_texture_size_ = 0; |
| 49 GlCanvas* canvas_ = nullptr; | 48 GlCanvas* canvas_ = nullptr; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(GlDesktop); | 50 DISALLOW_COPY_AND_ASSIGN(GlDesktop); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace remoting | 53 } // namespace remoting |
| 55 | 54 |
| 56 #endif // REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_ | 55 #endif // REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_ |
| OLD | NEW |