OLD | NEW |
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 #include "remoting/codec/video_encoder_vp8.h" | 5 #include "remoting/codec/video_encoder_vp8.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "remoting/base/capture_data.h" | 13 #include "remoting/capturer/capture_data.h" |
14 #include "remoting/codec/codec_test.h" | 14 #include "remoting/codec/codec_test.h" |
15 #include "remoting/proto/video.pb.h" | 15 #include "remoting/proto/video.pb.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const int kIntMax = std::numeric_limits<int>::max(); | 20 const int kIntMax = std::numeric_limits<int>::max(); |
21 | 21 |
22 } // namespace | 22 } // namespace |
23 | 23 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 scoped_refptr<CaptureData> capture_data(new CaptureData( | 89 scoped_refptr<CaptureData> capture_data(new CaptureData( |
90 planes, SkISize::Make(width, height), media::VideoFrame::RGB32)); | 90 planes, SkISize::Make(width, height), media::VideoFrame::RGB32)); |
91 capture_data->set_dpi(SkIPoint::Make(96, 97)); | 91 capture_data->set_dpi(SkIPoint::Make(96, 97)); |
92 encoder.Encode(capture_data, false, | 92 encoder.Encode(capture_data, false, |
93 base::Bind(&VideoEncoderDpiCallback::DataAvailable, | 93 base::Bind(&VideoEncoderDpiCallback::DataAvailable, |
94 base::Unretained(&callback))); | 94 base::Unretained(&callback))); |
95 } | 95 } |
96 | 96 |
97 } // namespace remoting | 97 } // namespace remoting |
OLD | NEW |