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

Unified Diff: remoting/client/plugin/pepper_video_renderer_2d.h

Issue 1236663002: Allow shaped-desktop hosts to send shape only when it changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Pepper 2D renderer build Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_video_renderer_2d.h
diff --git a/remoting/client/plugin/pepper_video_renderer_2d.h b/remoting/client/plugin/pepper_video_renderer_2d.h
index bae9cb31f8fd072ab646c804e980325afee029ba..21ac4ec229b97f0fb8fa86c4dbfa15c5fc50477d 100644
--- a/remoting/client/plugin/pepper_video_renderer_2d.h
+++ b/remoting/client/plugin/pepper_video_renderer_2d.h
@@ -30,7 +30,6 @@ class DesktopFrame;
namespace remoting {
-class FrameConsumerProxy;
class SoftwareVideoRenderer;
// Video renderer that wraps SoftwareVideoRenderer and displays it using Pepper
@@ -60,7 +59,7 @@ class PepperVideoRenderer2D : public PepperVideoRenderer,
const webrtc::DesktopRect& clip_area,
webrtc::DesktopFrame* buffer,
const webrtc::DesktopRegion& region,
- const webrtc::DesktopRegion& shape) override;
+ const webrtc::DesktopRegion* shape) override;
void ReturnBuffer(webrtc::DesktopFrame* buffer) override;
void SetSourceSize(const webrtc::DesktopSize& source_size,
const webrtc::DesktopVector& dpi) override;
@@ -92,7 +91,6 @@ class PepperVideoRenderer2D : public PepperVideoRenderer,
pp::Graphics2D graphics2d_;
- scoped_refptr<FrameConsumerProxy> frame_consumer_proxy_;
scoped_ptr<SoftwareVideoRenderer> software_video_renderer_;
// List of allocated image buffers.
@@ -126,6 +124,9 @@ class PepperVideoRenderer2D : public PepperVideoRenderer,
// Resolution of the most recent source frame dots-per-inch.
webrtc::DesktopVector source_dpi_;
+ // Shape of the most recent source frame.
+ scoped_ptr<webrtc::DesktopRegion> source_shape_;
+
// True if there is already a Flush() pending on the Graphics2D context.
bool flush_pending_;
« 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