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 "content/common/gpu/media/android_video_encode_accelerator.h" | 5 #include "content/common/gpu/media/android_video_encode_accelerator.h" |
6 | 6 |
| 7 #include <memory> |
7 #include <set> | 8 #include <set> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
13 #include "content/common/gpu/media/shared_memory_region.h" | 14 #include "content/common/gpu/media/shared_memory_region.h" |
14 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 15 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
15 #include "gpu/ipc/service/gpu_channel.h" | 16 #include "gpu/ipc/service/gpu_channel.h" |
16 #include "media/base/android/media_codec_util.h" | 17 #include "media/base/android/media_codec_util.h" |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 base::MessageLoop::current()->PostTask( | 438 base::MessageLoop::current()->PostTask( |
438 FROM_HERE, | 439 FROM_HERE, |
439 base::Bind(&VideoEncodeAccelerator::Client::BitstreamBufferReady, | 440 base::Bind(&VideoEncodeAccelerator::Client::BitstreamBufferReady, |
440 client_ptr_factory_->GetWeakPtr(), | 441 client_ptr_factory_->GetWeakPtr(), |
441 bitstream_buffer.id(), | 442 bitstream_buffer.id(), |
442 size, | 443 size, |
443 key_frame)); | 444 key_frame)); |
444 } | 445 } |
445 | 446 |
446 } // namespace content | 447 } // namespace content |
OLD | NEW |