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

Unified Diff: remoting/base/capture_data.h

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | remoting/base/capture_data.cc » ('j') | remoting/capturer/capturer_mock_objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/capture_data.h
diff --git a/remoting/base/capture_data.h b/remoting/base/capture_data.h
deleted file mode 100644
index adab19ebc1fbaff06a91adffc0e901b508540bd7..0000000000000000000000000000000000000000
--- a/remoting/base/capture_data.h
+++ /dev/null
@@ -1,99 +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 REMOTING_BASE_CAPTURE_DATA_H_
-#define REMOTING_BASE_CAPTURE_DATA_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "media/base/video_frame.h"
-#include "remoting/base/shared_buffer.h"
-#include "third_party/skia/include/core/SkRegion.h"
-
-namespace remoting {
-
-class SharedBuffer;
-
-struct DataPlanes {
- DataPlanes();
-
- static const int kPlaneCount = 3;
- uint8* data[kPlaneCount];
- int strides[kPlaneCount];
-};
-
-// Stores the data and information of a capture to pass off to the
-// encoding thread.
-class CaptureData : public base::RefCountedThreadSafe<CaptureData> {
- public:
- CaptureData(const DataPlanes &data_planes,
- const SkISize& size,
- media::VideoFrame::Format format);
-
- // Gets the data_planes data of the previous capture.
- const DataPlanes& data_planes() const { return data_planes_; }
-
- // 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_; }
-
- // Gets the pixel format of the image captured.
- media::VideoFrame::Format pixel_format() const { return pixel_format_; }
-
- 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_planes_.data[0]|.
- scoped_refptr<SharedBuffer> shared_buffer() const { return shared_buffer_; }
-
- // Sets the shared memory buffer pointed to by |data_planes_.data[0]|.
- void set_shared_buffer(scoped_refptr<SharedBuffer> shared_buffer) {
- shared_buffer_ = shared_buffer;
- }
-
- private:
- friend class base::RefCountedThreadSafe<CaptureData>;
- virtual ~CaptureData();
-
- const DataPlanes data_planes_;
- SkRegion dirty_region_;
- SkISize size_;
- media::VideoFrame::Format pixel_format_;
-
- // 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 remoting
-
-#endif // REMOTING_BASE_CAPTURE_DATA_H_
« no previous file with comments | « no previous file | remoting/base/capture_data.cc » ('j') | remoting/capturer/capturer_mock_objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698