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

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

Issue 98183007: Add content API CreateVideoEncodeAccelerator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move files to content/renderer. Add DEPS include rule. Created 6 years, 11 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/video_encode_accelerator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/public/renderer/video_encode_accelerator.h"
6
7 #include "content/renderer/render_thread_impl.h"
8
9 namespace content {
10
11 scoped_ptr<media::VideoEncodeAccelerator>
12 CreateVideoEncodeAccelerator(media::VideoEncodeAccelerator::Client* client) {
13 scoped_ptr<media::VideoEncodeAccelerator> vea;
14
15 scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories =
16 RenderThreadImpl::current()->GetGpuFactories();
17 if (gpu_factories.get())
18 vea = gpu_factories->CreateVideoEncodeAccelerator(client).Pass();
19
20 return vea.Pass();
21 }
22
23 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/video_encode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698