| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/renderer/pepper/video_encoder_shim.h" | 5 #include "content/renderer/pepper/video_encoder_shim.h" |
| 6 | 6 |
| 7 #include <inttypes.h> | 7 #include <inttypes.h> |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/memory/scoped_vector.h" | |
| 15 #include "base/memory/shared_memory.h" | 14 #include "base/memory/shared_memory.h" |
| 16 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 17 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 18 #include "content/renderer/pepper/pepper_video_encoder_host.h" | 17 #include "content/renderer/pepper/pepper_video_encoder_host.h" |
| 19 #include "content/renderer/render_thread_impl.h" | 18 #include "content/renderer/render_thread_impl.h" |
| 20 #include "third_party/libvpx/source/libvpx/vpx/vp8cx.h" | 19 #include "third_party/libvpx/source/libvpx/vpx/vp8cx.h" |
| 21 #include "third_party/libvpx/source/libvpx/vpx/vpx_encoder.h" | 20 #include "third_party/libvpx/source/libvpx/vpx/vpx_encoder.h" |
| 22 #include "ui/gfx/geometry/size.h" | 21 #include "ui/gfx/geometry/size.h" |
| 23 | 22 |
| 24 namespace content { | 23 namespace content { |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 } | 461 } |
| 463 | 462 |
| 464 void VideoEncoderShim::OnNotifyError( | 463 void VideoEncoderShim::OnNotifyError( |
| 465 media::VideoEncodeAccelerator::Error error) { | 464 media::VideoEncodeAccelerator::Error error) { |
| 466 DCHECK(RenderThreadImpl::current()); | 465 DCHECK(RenderThreadImpl::current()); |
| 467 | 466 |
| 468 host_->NotifyError(error); | 467 host_->NotifyError(error); |
| 469 } | 468 } |
| 470 | 469 |
| 471 } // namespace content | 470 } // namespace content |
| OLD | NEW |