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/threading/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/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( |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 weak_this_factory_.InvalidateWeakPtrs(); | 320 weak_this_factory_.InvalidateWeakPtrs(); |
321 | 321 |
322 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the | 322 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the |
323 // last thing done on this stack! | 323 // last thing done on this stack! |
324 VideoEncodeAccelerator::Client* client = NULL; | 324 VideoEncodeAccelerator::Client* client = NULL; |
325 std::swap(client_, client); | 325 std::swap(client_, client); |
326 client->NotifyError(error); | 326 client->NotifyError(error); |
327 } | 327 } |
328 | 328 |
329 } // namespace media | 329 } // namespace media |
OLD | NEW |