| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_BASE_CAPTURE_DATA_H_ | 5 #ifndef REMOTING_BASE_CAPTURE_DATA_H_ |
| 6 #define REMOTING_BASE_CAPTURE_DATA_H_ | 6 #define REMOTING_BASE_CAPTURE_DATA_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 capture_time_ms_ = capture_time_ms; | 53 capture_time_ms_ = capture_time_ms; |
| 54 } | 54 } |
| 55 | 55 |
| 56 int64 client_sequence_number() const { return client_sequence_number_; } | 56 int64 client_sequence_number() const { return client_sequence_number_; } |
| 57 | 57 |
| 58 void set_client_sequence_number(int64 client_sequence_number) { | 58 void set_client_sequence_number(int64 client_sequence_number) { |
| 59 client_sequence_number_ = client_sequence_number; | 59 client_sequence_number_ = client_sequence_number; |
| 60 } | 60 } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 friend class base::RefCountedThreadSafe<CaptureData>; |
| 64 virtual ~CaptureData(); |
| 65 |
| 63 const DataPlanes data_planes_; | 66 const DataPlanes data_planes_; |
| 64 SkRegion dirty_region_; | 67 SkRegion dirty_region_; |
| 65 SkISize size_; | 68 SkISize size_; |
| 66 media::VideoFrame::Format pixel_format_; | 69 media::VideoFrame::Format pixel_format_; |
| 67 | 70 |
| 68 // Time spent in capture. Unit is in milliseconds. | 71 // Time spent in capture. Unit is in milliseconds. |
| 69 int capture_time_ms_; | 72 int capture_time_ms_; |
| 70 | 73 |
| 71 // Sequence number supplied by client for performance tracking. | 74 // Sequence number supplied by client for performance tracking. |
| 72 int64 client_sequence_number_; | 75 int64 client_sequence_number_; |
| 73 | |
| 74 friend class base::RefCountedThreadSafe<CaptureData>; | |
| 75 virtual ~CaptureData(); | |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace remoting | 78 } // namespace remoting |
| 79 | 79 |
| 80 #endif // REMOTING_BASE_CAPTURE_DATA_H_ | 80 #endif // REMOTING_BASE_CAPTURE_DATA_H_ |
| OLD | NEW |