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

Unified Diff: remoting/client/frame_consumer_proxy.h

Issue 1288063004: Simplify FrameConsumer interface. Remove FrameProducer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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
deleted file mode 100644
index 35bc76af5f795199bafe0194090c26db63038cee..0000000000000000000000000000000000000000
--- a/remoting/client/frame_consumer_proxy.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// FrameConsumerProxy is used to allow a FrameConsumer on the UI thread to be
-// invoked by a Decoder on the decoder thread. The Detach() method is used by
-// the proxy's owner before tearing down the FrameConsumer, to prevent any
-// further invokations reaching it.
-
-#ifndef REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_
-#define REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_
-
-#include "base/memory/weak_ptr.h"
-#include "remoting/client/frame_consumer.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace remoting {
-
-class FrameConsumerProxy : public FrameConsumer {
- public:
- // Constructs a FrameConsumer proxy which can be passed to another thread,
- // and will direct calls to |frame_consumer| on the thread from which the
- // proxy was constructed.
- FrameConsumerProxy(const base::WeakPtr<FrameConsumer>& frame_consumer);
- ~FrameConsumerProxy() override;
-
- // FrameConsumer implementation.
- void ApplyBuffer(const webrtc::DesktopSize& view_size,
- const webrtc::DesktopRect& clip_area,
- webrtc::DesktopFrame* buffer,
- const webrtc::DesktopRegion& region,
- const webrtc::DesktopRegion* shape) override;
- void ReturnBuffer(webrtc::DesktopFrame* buffer) override;
- void SetSourceSize(const webrtc::DesktopSize& source_size,
- const webrtc::DesktopVector& dpi) override;
- PixelFormat GetPixelFormat() override;
-
- private:
- base::WeakPtr<FrameConsumer> frame_consumer_;
-
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- PixelFormat pixel_format_;
-
- DISALLOW_COPY_AND_ASSIGN(FrameConsumerProxy);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_FRAME_CONSUMER_PROXY_H_
« 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