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

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

Issue 1844143002: Add VideoLayout message. (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"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 pp::Graphics2D graphics2d_; 75 pp::Graphics2D graphics2d_;
76 76
77 scoped_ptr<SoftwareVideoRenderer> software_video_renderer_; 77 scoped_ptr<SoftwareVideoRenderer> software_video_renderer_;
78 78
79 // View size in output pixels. 79 // View size in output pixels.
80 webrtc::DesktopSize view_size_; 80 webrtc::DesktopSize view_size_;
81 81
82 // Size of the most recent source frame in pixels. 82 // Size of the most recent source frame in pixels.
83 webrtc::DesktopSize source_size_; 83 webrtc::DesktopSize source_size_;
84 84
85 // Resolution of the most recent source frame dots-per-inch.
86 webrtc::DesktopVector source_dpi_;
87
88 // Done callbacks for the frames that have been painted but not flushed. 85 // Done callbacks for the frames that have been painted but not flushed.
89 ScopedVector<base::ScopedClosureRunner> pending_frames_done_callbacks_; 86 ScopedVector<base::ScopedClosureRunner> pending_frames_done_callbacks_;
90 87
91 // Done callbacks for the frames that are currently being flushed. 88 // Done callbacks for the frames that are currently being flushed.
92 ScopedVector<base::ScopedClosureRunner> flushing_frames_done_callbacks_; 89 ScopedVector<base::ScopedClosureRunner> flushing_frames_done_callbacks_;
93 90
94 // True if there paint operations that need to be flushed. 91 // True if there paint operations that need to be flushed.
95 bool need_flush_ = false; 92 bool need_flush_ = false;
96 93
97 // True if there is already a Flush() pending on the Graphics2D context. 94 // True if there is already a Flush() pending on the Graphics2D context.
98 bool flush_pending_ = false; 95 bool flush_pending_ = false;
99 96
100 // True after the first call to DrawFrame(). 97 // True after the first call to DrawFrame().
101 bool frame_received_ = false; 98 bool frame_received_ = false;
102 99
103 // True if dirty regions are to be sent to |event_handler_| for debugging. 100 // True if dirty regions are to be sent to |event_handler_| for debugging.
104 bool debug_dirty_region_ = false; 101 bool debug_dirty_region_ = false;
105 102
106 base::ThreadChecker thread_checker_; 103 base::ThreadChecker thread_checker_;
107 104
108 pp::CompletionCallbackFactory<PepperVideoRenderer2D> callback_factory_; 105 pp::CompletionCallbackFactory<PepperVideoRenderer2D> callback_factory_;
109 base::WeakPtrFactory<PepperVideoRenderer2D> weak_factory_; 106 base::WeakPtrFactory<PepperVideoRenderer2D> weak_factory_;
110 107
111 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer2D); 108 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer2D);
112 }; 109 };
113 110
114 } // namespace remoting 111 } // namespace remoting
115 112
116 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_2D_H_ 113 #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