| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" | 5 #include "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "gpu/ipc/client/gpu_channel_host.h" | 10 #include "gpu/ipc/client/gpu_channel_host.h" |
| 11 #include "media/base/video_frame.h" | 11 #include "media/base/video_frame.h" |
| 12 #include "media/gpu/ipc/common/gpu_video_accelerator_util.h" | 12 #include "media/gpu/gpu_video_accelerator_util.h" |
| 13 #include "media/gpu/ipc/common/media_messages.h" | 13 #include "media/gpu/ipc/common/media_messages.h" |
| 14 #include "media/video/video_encode_accelerator.h" | 14 #include "media/video/video_encode_accelerator.h" |
| 15 #include "ui/gfx/gpu_memory_buffer.h" | 15 #include "ui/gfx/gpu_memory_buffer.h" |
| 16 | 16 |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 GpuVideoEncodeAcceleratorHost::GpuVideoEncodeAcceleratorHost( | 19 GpuVideoEncodeAcceleratorHost::GpuVideoEncodeAcceleratorHost( |
| 20 gpu::GpuChannelHost* channel, | 20 gpu::GpuChannelHost* channel, |
| 21 gpu::CommandBufferProxyImpl* impl) | 21 gpu::CommandBufferProxyImpl* impl) |
| 22 : channel_(channel), | 22 : channel_(channel), |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 weak_this_factory_.InvalidateWeakPtrs(); | 321 weak_this_factory_.InvalidateWeakPtrs(); |
| 322 | 322 |
| 323 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the | 323 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the |
| 324 // last thing done on this stack! | 324 // last thing done on this stack! |
| 325 VideoEncodeAccelerator::Client* client = NULL; | 325 VideoEncodeAccelerator::Client* client = NULL; |
| 326 std::swap(client_, client); | 326 std::swap(client_, client); |
| 327 client->NotifyError(error); | 327 client->NotifyError(error); |
| 328 } | 328 } |
| 329 | 329 |
| 330 } // namespace media | 330 } // namespace media |
| OLD | NEW |