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

Side by Side Diff: content/public/gpu/gpu_video_decode_accelerator_factory.cc

Issue 1745903002: Introduce GpuVideoDecodeAcceleratorFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Instantiate GVDAFactoryImpl instead of GVDAFactory from content/common Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 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/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h"
6
7 namespace content {
8
9 // static
10 scoped_ptr<GpuVideoDecodeAcceleratorFactory>
11 GpuVideoDecodeAcceleratorFactory::Create(
12 const GetGLContextCallback& get_gl_context_cb,
13 const MakeGLContextCurrentCallback& make_context_current_cb,
14 const BindGLImageCallback& bind_image_cb) {
15 return GpuVideoDecodeAcceleratorFactoryImpl::Create(
16 get_gl_context_cb, make_context_current_cb, bind_image_cb);
17 }
18
19 // static
20 scoped_ptr<GpuVideoDecodeAcceleratorFactory>
21 GpuVideoDecodeAcceleratorFactory::CreateWithGLES2Decoder(
22 const GetGLContextCallback& get_gl_context_cb,
23 const MakeGLContextCurrentCallback& make_context_current_cb,
24 const BindGLImageCallback& bind_image_cb,
25 const GetGLES2DecoderCallback& get_gles2_decoder_cb) {
26 return GpuVideoDecodeAcceleratorFactoryImpl::CreateWithGLES2Decoder(
27 get_gl_context_cb, make_context_current_cb, bind_image_cb,
28 get_gles2_decoder_cb);
29 }
30
31 // static
32 gpu::VideoDecodeAcceleratorCapabilities
33 GpuVideoDecodeAcceleratorFactory::GetDecoderCapabilities(
34 const gpu::GpuPreferences& gpu_preferences) {
35 return GpuVideoDecodeAcceleratorFactoryImpl::GetDecoderCapabilities(
36 gpu_preferences);
37 }
38
39 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698