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

Unified Diff: remoting/capturer/video_frame_queue.cc

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/capturer/video_frame_queue.h ('k') | remoting/capturer/win/desktop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/capturer/video_frame_queue.cc
diff --git a/remoting/capturer/video_frame_queue.cc b/remoting/capturer/video_frame_queue.cc
deleted file mode 100644
index 1d23f4e4123832fa10b4e606f82671ee724d2703..0000000000000000000000000000000000000000
--- a/remoting/capturer/video_frame_queue.cc
+++ /dev/null
@@ -1,38 +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.
-
-#include "remoting/capturer/video_frame_queue.h"
-
-#include <algorithm>
-
-#include "base/basictypes.h"
-#include "remoting/capturer/video_frame.h"
-
-namespace remoting {
-
-VideoFrameQueue::VideoFrameQueue()
- : current_(0),
- previous_(NULL) {
- SetAllFramesNeedUpdate();
-}
-
-VideoFrameQueue::~VideoFrameQueue() {
-}
-
-void VideoFrameQueue::DoneWithCurrentFrame() {
- previous_ = current_frame();
- current_ = (current_ + 1) % kQueueLength;
-}
-
-void VideoFrameQueue::ReplaceCurrentFrame(scoped_ptr<VideoFrame> frame) {
- frames_[current_] = frame.Pass();
- needs_update_[current_] = false;
-}
-
-void VideoFrameQueue::SetAllFramesNeedUpdate() {
- std::fill(needs_update_, needs_update_ + arraysize(needs_update_), true);
- previous_ = NULL;
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/capturer/video_frame_queue.h ('k') | remoting/capturer/win/desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698