Index: remoting/host/video_frame_queue.cc |
diff --git a/remoting/host/video_frame_queue.cc b/remoting/host/video_frame_queue.cc |
deleted file mode 100644 |
index 3d1c300de23a29401fe458842b50b570c03213cd..0000000000000000000000000000000000000000 |
--- a/remoting/host/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/host/video_frame_queue.h" |
- |
-#include <algorithm> |
- |
-#include "base/basictypes.h" |
-#include "remoting/host/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 |