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

Unified Diff: remoting/client/ios/bridge/frame_consumer_bridge.h

Issue 2829853003: Remove crufty bridge code from old CRD iOS app. (Closed)
Patch Set: Fix remoting/display proto import issue. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/ios/bridge/frame_consumer_bridge.h
diff --git a/remoting/client/ios/bridge/frame_consumer_bridge.h b/remoting/client/ios/bridge/frame_consumer_bridge.h
deleted file mode 100644
index ca51821f72cc1fed8fa843b80859f1656ec17c5c..0000000000000000000000000000000000000000
--- a/remoting/client/ios/bridge/frame_consumer_bridge.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef REMOTING_CLIENT_IOS_BRIDGE_FRAME_CONSUMER_BRIDGE_H_
-#define REMOTING_CLIENT_IOS_BRIDGE_FRAME_CONSUMER_BRIDGE_H_
-
-#include <list>
-#include <memory>
-
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_vector.h"
-#include "base/memory/weak_ptr.h"
-#include "remoting/client/ios/bridge/client_instance.h"
-#include "remoting/protocol/frame_consumer.h"
-#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
-#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
-
-namespace remoting {
-
-class ClientInstance;
-
-// TODO(nicholss): It should be possible to use remoting/client/
-// dual_buffer_frame_consumer.h instead of this class.
-class FrameConsumerBridge : public protocol::FrameConsumer {
- public:
- typedef base::Callback<void(webrtc::DesktopFrame* buffer)> OnFrameCallback;
-
- // A callback is provided to return frame updates asynchronously.
- explicit FrameConsumerBridge(ClientInstance* client_instance,
- const OnFrameCallback callback);
-
- ~FrameConsumerBridge() override;
-
- std::unique_ptr<webrtc::DesktopFrame> AllocateFrame(
- const webrtc::DesktopSize& size) override;
-
- void DrawFrame(std::unique_ptr<webrtc::DesktopFrame> frame,
- const base::Closure& done) override;
-
- PixelFormat GetPixelFormat() override;
-
- private:
- void RenderFrame(std::unique_ptr<webrtc::DesktopFrame> frame);
-
- void OnFrameRendered(const base::Closure& done);
-
- OnFrameCallback callback_;
-
- ClientInstance* runtime_;
-
- webrtc::DesktopSize view_size_;
-
- base::WeakPtrFactory<FrameConsumerBridge> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(FrameConsumerBridge);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_IOS_BRIDGE_FRAME_CONSUMER_BRIDGE_H_
« no previous file with comments | « remoting/client/ios/bridge/client_proxy_unittest.mm ('k') | remoting/client/ios/bridge/frame_consumer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698