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

Side by Side Diff: remoting/base/capture_data.h

Issue 10066042: Refcounted types should not have public destructors, remoting/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Few fixes Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/client/frame_consumer_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/frame_consumer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698