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

Unified Diff: remoting/client/frame_producer.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_proxy.cc ('k') | remoting/client/jni/chromoting_jni_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/frame_producer.h
diff --git a/remoting/client/frame_producer.h b/remoting/client/frame_producer.h
deleted file mode 100644
index 2776eb7243cabcff90624367101bd2fa1fb3e646..0000000000000000000000000000000000000000
--- a/remoting/client/frame_producer.h
+++ /dev/null
@@ -1,54 +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.
-
-#ifndef REMOTING_CLIENT_FRAME_PRODUCER_H_
-#define REMOTING_CLIENT_FRAME_PRODUCER_H_
-
-#include "base/callback_forward.h"
-
-namespace webrtc {
-class DesktopFrame;
-class DesktopRect;
-class DesktopRegion;
-class DesktopSize;
-} // namespace webrtc
-
-namespace remoting {
-
-class FrameProducer {
- public:
- FrameProducer() {}
-
- // Adds an image buffer to the pool of pending buffers for subsequent drawing.
- // Once drawing is completed the buffer will be returned to the consumer via
- // the FrameConsumer::ApplyBuffer() call. Alternatively an empty buffer could
- // be returned via the FrameConsumer::ReturnBuffer() call.
- //
- // The passed buffer must be large enough to hold the whole clipping area.
- virtual void DrawBuffer(webrtc::DesktopFrame* buffer) = 0;
-
- // Requests repainting of the specified |region| of the frame as soon as
- // possible. |region| is specified in output coordinates relative to
- // the beginning of the frame.
- virtual void InvalidateRegion(const webrtc::DesktopRegion& region) = 0;
-
- // Requests returing of all pending buffers to the consumer via
- // FrameConsumer::ReturnBuffer() calls.
- virtual void RequestReturnBuffers(const base::Closure& done) = 0;
-
- // Notifies the producer of changes to the output view size or clipping area.
- // Implementations must cope with empty |view_size| or |clip_area|.
- virtual void SetOutputSizeAndClip(const webrtc::DesktopSize& view_size,
- const webrtc::DesktopRect& clip_area) = 0;
-
- protected:
- virtual ~FrameProducer() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(FrameProducer);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_FRAME_PRODUCER_H_
« no previous file with comments | « remoting/client/frame_consumer_proxy.cc ('k') | remoting/client/jni/chromoting_jni_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698