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