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

Unified Diff: remoting/client/frame_consumer_proxy.h

Issue 9331003: Improving the decoder pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Integer ScaleRect Created 8 years, 10 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/frame_consumer.h ('k') | remoting/client/frame_consumer_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/frame_consumer_proxy.h
diff --git a/remoting/client/frame_consumer_proxy.h b/remoting/client/frame_consumer_proxy.h
index d7dd4b23d9c15f0beb6d2ce043048976ce3179b3..039f04285400f72332705a20a8c1a76c4f830897 100644
--- a/remoting/client/frame_consumer_proxy.h
+++ b/remoting/client/frame_consumer_proxy.h
@@ -25,19 +25,20 @@ class FrameConsumerProxy
public:
// Constructs a proxy for |frame_consumer| which will trampoline invocations
// to |frame_consumer_message_loop|.
- FrameConsumerProxy(FrameConsumer* frame_consumer,
- base::MessageLoopProxy* frame_consumer_message_loop);
+ FrameConsumerProxy(base::MessageLoopProxy* frame_consumer_message_loop);
virtual ~FrameConsumerProxy();
// FrameConsumer implementation.
- virtual void AllocateFrame(media::VideoFrame::Format format,
- const SkISize& size,
- scoped_refptr<media::VideoFrame>* frame_out,
- const base::Closure& done) OVERRIDE;
- virtual void ReleaseFrame(media::VideoFrame* frame) OVERRIDE;
- virtual void OnPartialFrameOutput(media::VideoFrame* frame,
- SkRegion* region,
- const base::Closure& done) OVERRIDE;
+ virtual void ApplyBuffer(const SkISize& view_size,
+ const SkIRect& clip_area,
+ pp::ImageData* buffer,
+ const SkRegion& region) OVERRIDE;
+ virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE;
+ virtual void SetSourceSize(const SkISize& source_size) OVERRIDE;
+
+ // Attaches to |frame_consumer_|.
+ // This must only be called from |frame_consumer_message_loop_|.
+ void Attach(FrameConsumer* frame_consumer);
// Detaches from |frame_consumer_|, ensuring no further calls reach it.
// This must only be called from |frame_consumer_message_loop_|.
« no previous file with comments | « remoting/client/frame_consumer.h ('k') | remoting/client/frame_consumer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698