| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "extensions/renderer/api/display_source/wifi_display/wifi_display_video
_encoder.h" | 5 #include "extensions/renderer/api/display_source/wifi_display/wifi_display_video
_encoder.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/single_thread_task_runner.h" |
| 13 #include "base/task_runner_util.h" | 14 #include "base/task_runner_util.h" |
| 14 #include "content/public/renderer/video_encode_accelerator.h" | 15 #include "content/public/renderer/video_encode_accelerator.h" |
| 15 #include "media/base/bind_to_current_loop.h" | 16 #include "media/base/bind_to_current_loop.h" |
| 16 | 17 |
| 17 namespace extensions { | 18 namespace extensions { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 // This video encoder implements hardware accelerated H.264 video encoding | 22 // This video encoder implements hardware accelerated H.264 video encoding |
| 22 // using media::VideoEncodeAccelerator. | 23 // using media::VideoEncodeAccelerator. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // static | 232 // static |
| 232 void WiFiDisplayVideoEncoder::CreateVEA( | 233 void WiFiDisplayVideoEncoder::CreateVEA( |
| 233 const InitParameters& params, | 234 const InitParameters& params, |
| 234 const VideoEncoderCallback& encoder_callback) { | 235 const VideoEncoderCallback& encoder_callback) { |
| 235 auto on_vea_cb = | 236 auto on_vea_cb = |
| 236 base::Bind(&WiFiDisplayVideoEncoderVEA::Create, params, encoder_callback); | 237 base::Bind(&WiFiDisplayVideoEncoderVEA::Create, params, encoder_callback); |
| 237 params.vea_create_callback.Run(media::BindToCurrentLoop(on_vea_cb)); | 238 params.vea_create_callback.Run(media::BindToCurrentLoop(on_vea_cb)); |
| 238 } | 239 } |
| 239 | 240 |
| 240 } // namespace extensions | 241 } // namespace extensions |
| OLD | NEW |