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

Unified Diff: media/video/capture/screen/screen_capture_frame.h

Issue 13983010: Use webrtc::DesktopCapturer for screen capturer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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.h
diff --git a/media/video/capture/screen/screen_capture_frame.h b/media/video/capture/screen/screen_capture_frame.h
deleted file mode 100644
index 090501e5aca27ba1d59cc07e8328e59e44e29c5a..0000000000000000000000000000000000000000
--- a/media/video/capture/screen/screen_capture_frame.h
+++ /dev/null
@@ -1,64 +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 MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURE_FRAME_H_
-#define MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURE_FRAME_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "media/base/media_export.h"
-#include "media/video/capture/screen/shared_buffer.h"
-#include "third_party/skia/include/core/SkSize.h"
-#include "third_party/skia/include/core/SkTypes.h"
-
-namespace media {
-
-// Represents a video frame.
-class MEDIA_EXPORT ScreenCaptureFrame {
- public:
- virtual ~ScreenCaptureFrame();
-
- int bytes_per_row() const { return bytes_per_row_; }
- const SkISize& dimensions() const { return dimensions_; }
- uint8* pixels() const { return pixels_; }
- const scoped_refptr<SharedBuffer>& shared_buffer() const {
- return shared_buffer_;
- }
-
- protected:
- // Initializes an empty video frame. Derived classes are expected to allocate
- // memory for the frame in a platform-specific way and set the properties of
- // the allocated frame.
- ScreenCaptureFrame();
-
- void set_bytes_per_row(int bytes_per_row) {
- bytes_per_row_ = bytes_per_row;
- }
-
- void set_dimensions(const SkISize& dimensions) { dimensions_ = dimensions; }
- void set_pixels(uint8* ptr) { pixels_ = ptr; }
- void set_shared_buffer(scoped_refptr<SharedBuffer> shared_buffer) {
- shared_buffer_ = shared_buffer;
- }
-
- private:
- // Bytes per row of pixels including necessary padding.
- int bytes_per_row_;
-
- // Dimensions of the buffer in pixels.
- SkISize dimensions_;
-
- // Points to the pixel buffer.
- uint8* pixels_;
-
- // Points to an optional shared memory buffer that backs up |pixels_| buffer.
- scoped_refptr<SharedBuffer> shared_buffer_;
-
- DISALLOW_COPY_AND_ASSIGN(ScreenCaptureFrame);
-};
-
-} // namespace media
-
-#endif // MEDIA_VIDEO_CAPTURE_SCREEN_SCREEN_CAPTURE_FRAME_H_
« no previous file with comments | « media/video/capture/screen/screen_capture_device_unittest.cc ('k') | media/video/capture/screen/screen_capture_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698