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

Unified Diff: media/video/capture/screen/screen_capture_data.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
« no previous file with comments | « media/video/capture/screen/mouse_cursor_shape.cc ('k') | media/video/capture/screen/screen_capture_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/screen/screen_capture_data.h
diff --git a/media/video/capture/screen/screen_capture_data.h b/media/video/capture/screen/screen_capture_data.h
deleted file mode 100644
index c5e4a0979fed1649823b213700adfb8c95302e57..0000000000000000000000000000000000000000
--- a/media/video/capture/screen/screen_capture_data.h
+++ /dev/null
@@ -1,93 +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_CAPTURE_DATA_H_
-#define MEDIA_VIDEO_CAPTURE_SCREEN_CAPTURE_DATA_H_
-
-#include <vector>
-
-#include "base/basictypes.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/SkRegion.h"
-
-namespace media {
-
-class SharedBuffer;
-
-// Stores the data and information of a capture to pass off to the
-// encoding thread.
-class MEDIA_EXPORT ScreenCaptureData
- : public base::RefCountedThreadSafe<ScreenCaptureData> {
- public:
- // 32 bit RGB is 4 bytes per pixel.
- static const int kBytesPerPixel = 4;
-
- ScreenCaptureData(uint8* data, int stride, const SkISize& size);
-
- // Data buffer.
- uint8* data() const { return data_; }
-
- // Distance in bytes between neighboring lines in the data buffer.
- int stride() const { return stride_; }
-
- // Gets the dirty region from the previous capture.
- const SkRegion& dirty_region() const { return dirty_region_; }
-
- // Returns the size of the image captured.
- SkISize size() const { return size_; }
-
- SkRegion& mutable_dirty_region() { return dirty_region_; }
-
- // Returns the time spent on capturing.
- int capture_time_ms() const { return capture_time_ms_; }
-
- // Sets the time spent on capturing.
- void set_capture_time_ms(int capture_time_ms) {
- capture_time_ms_ = capture_time_ms;
- }
-
- int64 client_sequence_number() const { return client_sequence_number_; }
-
- void set_client_sequence_number(int64 client_sequence_number) {
- client_sequence_number_ = client_sequence_number;
- }
-
- SkIPoint dpi() const { return dpi_; }
-
- void set_dpi(const SkIPoint& dpi) { dpi_ = dpi; }
-
- // Returns the shared memory buffer pointed to by |data|.
- scoped_refptr<SharedBuffer> shared_buffer() const { return shared_buffer_; }
-
- // Sets the shared memory buffer pointed to by |data|.
- void set_shared_buffer(scoped_refptr<SharedBuffer> shared_buffer) {
- shared_buffer_ = shared_buffer;
- }
-
- private:
- friend class base::RefCountedThreadSafe<ScreenCaptureData>;
- virtual ~ScreenCaptureData();
-
- uint8* data_;
- int stride_;
- SkRegion dirty_region_;
- SkISize size_;
-
- // Time spent in capture. Unit is in milliseconds.
- int capture_time_ms_;
-
- // Sequence number supplied by client for performance tracking.
- int64 client_sequence_number_;
-
- // DPI for this frame.
- SkIPoint dpi_;
-
- scoped_refptr<SharedBuffer> shared_buffer_;
-};
-
-} // namespace media
-
-#endif // MEDIA_VIDEO_CAPTURE_SCREEN_CAPTURE_DATA_H_
« no previous file with comments | « media/video/capture/screen/mouse_cursor_shape.cc ('k') | media/video/capture/screen/screen_capture_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698