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

Side by Side Diff: remoting/client/gl_desktop.h

Issue 2196493002: [Chromoting] Unit Tests for GlRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make RequestRender private and declare the test as friend Created 4 years, 4 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
« no previous file with comments | « remoting/client/gl_cursor_feedback_texture.cc ('k') | remoting/client/gl_desktop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
12 12
13 namespace webrtc { 13 namespace webrtc {
14 class DesktopFrame; 14 class DesktopFrame;
15 } // namespace webrtc 15 } // namespace webrtc
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class GlCanvas; 19 class GlCanvas;
20 class GlRenderLayer; 20 class GlRenderLayer;
21 21
22 // This class draws the desktop on the canvas. 22 // This class draws the desktop on the canvas.
23 class GlDesktop { 23 class GlDesktop {
24 public: 24 public:
25 GlDesktop(); 25 GlDesktop();
26 virtual ~GlDesktop(); 26 virtual ~GlDesktop();
27 27
28 // |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.
29 void SetVideoFrame(std::unique_ptr<webrtc::DesktopFrame> frame); 29 void SetVideoFrame(const webrtc::DesktopFrame& frame);
Yuwei 2016/08/03 00:36:48 I'll hold this change for the multi-texture deskto
30 30
31 // Sets the canvas on which the desktop will be drawn. Caller must feed a 31 // Sets the canvas on which the desktop will be drawn. Caller must feed a
32 // full desktop frame after calling this function. 32 // full desktop frame after calling this function.
33 // If |canvas| is nullptr, nothing will happen when calling Draw(). 33 // If |canvas| is nullptr, nothing will happen when calling Draw().
34 void SetCanvas(GlCanvas* canvas); 34 void SetCanvas(GlCanvas* canvas);
35 35
36 // Draws the desktop on the canvas. 36 // Draws the desktop on the canvas.
37 void Draw(); 37 void Draw();
38 38
39 private: 39 private:
40 std::unique_ptr<GlRenderLayer> layer_; 40 std::unique_ptr<GlRenderLayer> layer_;
41 webrtc::DesktopSize last_desktop_size_; 41 webrtc::DesktopSize last_desktop_size_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(GlDesktop); 43 DISALLOW_COPY_AND_ASSIGN(GlDesktop);
44 }; 44 };
45 45
46 } // namespace remoting 46 } // namespace remoting
47 47
48 #endif // REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_ 48 #endif // REMOTING_CLIENT_OPENGL_GL_DESKTOP_H_
OLDNEW
« no previous file with comments | « remoting/client/gl_cursor_feedback_texture.cc ('k') | remoting/client/gl_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698