OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/public/renderer/video_encode_accelerator.h" | 5 #include "content/public/renderer/video_encode_accelerator.h" |
6 | 6 |
7 #include "content/renderer/render_thread_impl.h" | 7 #include "content/renderer/render_thread_impl.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
11 scoped_ptr<media::VideoEncodeAccelerator> | 11 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() { |
12 CreateVideoEncodeAccelerator(media::VideoEncodeAccelerator::Client* client) { | |
13 scoped_ptr<media::VideoEncodeAccelerator> vea; | 12 scoped_ptr<media::VideoEncodeAccelerator> vea; |
14 | 13 |
15 scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories = | 14 scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories = |
16 RenderThreadImpl::current()->GetGpuFactories(); | 15 RenderThreadImpl::current()->GetGpuFactories(); |
17 if (gpu_factories.get()) | 16 if (gpu_factories.get()) |
18 vea = gpu_factories->CreateVideoEncodeAccelerator(client).Pass(); | 17 vea = gpu_factories->CreateVideoEncodeAccelerator().Pass(); |
19 | 18 |
20 return vea.Pass(); | 19 return vea.Pass(); |
21 } | 20 } |
22 | 21 |
23 } // namespace content | 22 } // namespace content |
OLD | NEW |