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 #include "remoting/base/capture_data.h" | 5 #include "remoting/base/capture_data.h" |
6 | 6 |
7 namespace remoting { | 7 namespace remoting { |
8 | 8 |
9 DataPlanes::DataPlanes() { | 9 DataPlanes::DataPlanes() { |
10 for (int i = 0; i < kPlaneCount; ++i) { | 10 for (int i = 0; i < kPlaneCount; ++i) { |
11 data[i] = NULL; | 11 data[i] = NULL; |
12 strides[i] = 0; | 12 strides[i] = 0; |
13 } | 13 } |
14 } | 14 } |
15 | 15 |
16 CaptureData::CaptureData(const DataPlanes &data_planes, | 16 CaptureData::CaptureData(const DataPlanes &data_planes, |
17 const gfx::Size& size, | 17 const SkISize& size, |
18 media::VideoFrame::Format format) | 18 media::VideoFrame::Format format) |
19 : data_planes_(data_planes), | 19 : data_planes_(data_planes), |
20 size_(size), | 20 size_(size), |
21 pixel_format_(format), | 21 pixel_format_(format), |
22 capture_time_ms_(0), | 22 capture_time_ms_(0), |
23 client_sequence_number_(0) { | 23 client_sequence_number_(0) { |
24 } | 24 } |
25 | 25 |
26 CaptureData::~CaptureData() {} | 26 CaptureData::~CaptureData() {} |
27 | 27 |
28 } // namespace remoting | 28 } // namespace remoting |
OLD | NEW |