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

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

Issue 10736046: Add DPI information to video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/base/capture_data.cc » ('j') | remoting/proto/video.proto » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void set_capture_time_ms(int capture_time_ms) { 52 void set_capture_time_ms(int capture_time_ms) {
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 int32 dpi() const { return dpi_; }
63
64 void set_dpi(int32 dpi) { dpi_ = dpi; }
65
62 private: 66 private:
63 friend class base::RefCountedThreadSafe<CaptureData>; 67 friend class base::RefCountedThreadSafe<CaptureData>;
64 virtual ~CaptureData(); 68 virtual ~CaptureData();
65 69
66 const DataPlanes data_planes_; 70 const DataPlanes data_planes_;
67 SkRegion dirty_region_; 71 SkRegion dirty_region_;
68 SkISize size_; 72 SkISize size_;
69 media::VideoFrame::Format pixel_format_; 73 media::VideoFrame::Format pixel_format_;
70 74
71 // Time spent in capture. Unit is in milliseconds. 75 // Time spent in capture. Unit is in milliseconds.
72 int capture_time_ms_; 76 int capture_time_ms_;
73 77
74 // Sequence number supplied by client for performance tracking. 78 // Sequence number supplied by client for performance tracking.
75 int64 client_sequence_number_; 79 int64 client_sequence_number_;
80
81 // DPI for this frame.
82 int32 dpi_;
76 }; 83 };
77 84
78 } // namespace remoting 85 } // namespace remoting
79 86
80 #endif // REMOTING_BASE_CAPTURE_DATA_H_ 87 #endif // REMOTING_BASE_CAPTURE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/capture_data.cc » ('j') | remoting/proto/video.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698