Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: content/public/renderer/video_encode_accelerator.cc

Issue 171773014: Move ContextProvider binding to inside GpuVideoAcceleratorFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 12dbef7e Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/renderer/DEPS ('k') | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "media/filters/gpu_video_accelerator_factories.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 scoped_ptr<media::VideoEncodeAccelerator> 12 scoped_ptr<media::VideoEncodeAccelerator>
12 CreateVideoEncodeAccelerator(media::VideoEncodeAccelerator::Client* client) { 13 CreateVideoEncodeAccelerator(media::VideoEncodeAccelerator::Client* client) {
13 scoped_ptr<media::VideoEncodeAccelerator> vea; 14 scoped_ptr<media::VideoEncodeAccelerator> vea;
14 15
15 scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories = 16 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories =
16 RenderThreadImpl::current()->GetGpuFactories(); 17 RenderThreadImpl::current()->GetGpuFactories();
17 if (gpu_factories.get()) 18 if (gpu_factories.get())
18 vea = gpu_factories->CreateVideoEncodeAccelerator(client).Pass(); 19 vea = gpu_factories->CreateVideoEncodeAccelerator(client).Pass();
19 20
20 return vea.Pass(); 21 return vea.Pass();
21 } 22 }
22 23
23 } // namespace content 24 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/DEPS ('k') | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698