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

Unified Diff: media/video/capture/screen/screen_capture_frame_queue.cc

Issue 15692018: Remove screen capturers from media/video/capture/screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: media/video/capture/screen/screen_capture_frame_queue.cc
diff --git a/media/video/capture/screen/screen_capture_frame_queue.cc b/media/video/capture/screen/screen_capture_frame_queue.cc
deleted file mode 100644
index 5402acf584031cbcf4dc8aab9b70eee54394adfa..0000000000000000000000000000000000000000
--- a/media/video/capture/screen/screen_capture_frame_queue.cc
+++ /dev/null
@@ -1,39 +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 "media/video/capture/screen/screen_capture_frame_queue.h"
-
-#include <algorithm>
-
-#include "base/basictypes.h"
-#include "base/logging.h"
-#include "base/threading/non_thread_safe.h"
-#include "media/video/capture/screen/shared_desktop_frame.h"
-#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
-
-namespace media {
-
-ScreenCaptureFrameQueue::ScreenCaptureFrameQueue() : current_(0) {}
-
-ScreenCaptureFrameQueue::~ScreenCaptureFrameQueue() {}
-
-void ScreenCaptureFrameQueue::MoveToNextFrame() {
- current_ = (current_ + 1) % kQueueLength;
-
- // Verify that the frame is not shared, i.e. that consumer has released it
- // before attempting to capture again.
- DCHECK(!frames_[current_] || !frames_[current_]->IsShared());
-}
-
-void ScreenCaptureFrameQueue::ReplaceCurrentFrame(
- scoped_ptr<webrtc::DesktopFrame> frame) {
- frames_[current_].reset(SharedDesktopFrame::Wrap(frame.release()));
-}
-
-void ScreenCaptureFrameQueue::Reset() {
- for (int i = 0; i < kQueueLength; ++i)
- frames_[i].reset();
-}
-
-} // namespace media
« no previous file with comments | « media/video/capture/screen/screen_capture_frame_queue.h ('k') | media/video/capture/screen/screen_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698