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

Side by Side Diff: remoting/client/plugin/pepper_video_renderer_2d.h

Issue 1827043004: Remove shaped desktop support from remoting host and client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "ppapi/cpp/graphics_2d.h" 16 #include "ppapi/cpp/graphics_2d.h"
17 #include "ppapi/cpp/image_data.h" 17 #include "ppapi/cpp/image_data.h"
18 #include "ppapi/cpp/point.h" 18 #include "ppapi/cpp/point.h"
19 #include "ppapi/cpp/view.h" 19 #include "ppapi/cpp/view.h"
20 #include "ppapi/utility/completion_callback_factory.h" 20 #include "ppapi/utility/completion_callback_factory.h"
21 #include "remoting/client/plugin/pepper_video_renderer.h" 21 #include "remoting/client/plugin/pepper_video_renderer.h"
22 #include "remoting/protocol/frame_consumer.h" 22 #include "remoting/protocol/frame_consumer.h"
23 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 23 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
24 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
25 24
26 namespace base { 25 namespace base {
27 class ScopedClosureRunner; 26 class ScopedClosureRunner;
28 } // namespace base 27 } // namespace base
29 28
30 namespace webrtc { 29 namespace webrtc {
31 class DesktopFrame; 30 class DesktopFrame;
32 class SharedDesktopFrame; 31 class SharedDesktopFrame;
33 } // namespace webrtc 32 } // namespace webrtc
34 33
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 78
80 // View size in output pixels. 79 // View size in output pixels.
81 webrtc::DesktopSize view_size_; 80 webrtc::DesktopSize view_size_;
82 81
83 // Size of the most recent source frame in pixels. 82 // Size of the most recent source frame in pixels.
84 webrtc::DesktopSize source_size_; 83 webrtc::DesktopSize source_size_;
85 84
86 // Resolution of the most recent source frame dots-per-inch. 85 // Resolution of the most recent source frame dots-per-inch.
87 webrtc::DesktopVector source_dpi_; 86 webrtc::DesktopVector source_dpi_;
88 87
89 // Shape of the most recent source frame.
90 scoped_ptr<webrtc::DesktopRegion> source_shape_;
91
92 // Done callbacks for the frames that have been painted but not flushed. 88 // Done callbacks for the frames that have been painted but not flushed.
93 ScopedVector<base::ScopedClosureRunner> pending_frames_done_callbacks_; 89 ScopedVector<base::ScopedClosureRunner> pending_frames_done_callbacks_;
94 90
95 // Done callbacks for the frames that are currently being flushed. 91 // Done callbacks for the frames that are currently being flushed.
96 ScopedVector<base::ScopedClosureRunner> flushing_frames_done_callbacks_; 92 ScopedVector<base::ScopedClosureRunner> flushing_frames_done_callbacks_;
97 93
98 // True if there paint operations that need to be flushed. 94 // True if there paint operations that need to be flushed.
99 bool need_flush_ = false; 95 bool need_flush_ = false;
100 96
101 // True if there is already a Flush() pending on the Graphics2D context. 97 // True if there is already a Flush() pending on the Graphics2D context.
102 bool flush_pending_ = false; 98 bool flush_pending_ = false;
103 99
104 // True after the first call to DrawFrame(). 100 // True after the first call to DrawFrame().
105 bool frame_received_ = false; 101 bool frame_received_ = false;
106 102
107 // True if dirty regions are to be sent to |event_handler_| for debugging. 103 // True if dirty regions are to be sent to |event_handler_| for debugging.
108 bool debug_dirty_region_ = false; 104 bool debug_dirty_region_ = false;
109 105
110 base::ThreadChecker thread_checker_; 106 base::ThreadChecker thread_checker_;
111 107
112 pp::CompletionCallbackFactory<PepperVideoRenderer2D> callback_factory_; 108 pp::CompletionCallbackFactory<PepperVideoRenderer2D> callback_factory_;
113 base::WeakPtrFactory<PepperVideoRenderer2D> weak_factory_; 109 base::WeakPtrFactory<PepperVideoRenderer2D> weak_factory_;
114 110
115 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer2D); 111 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer2D);
116 }; 112 };
117 113
118 } // namespace remoting 114 } // namespace remoting
119 115
120 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ 116 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_video_renderer.h ('k') | remoting/client/plugin/pepper_video_renderer_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698