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