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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h

Issue 1822983002: Support external buffer import in VDA interface and add a V4L2SVDA impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "gpu/command_buffer/service/gpu_preferences.h" 10 #include "gpu/command_buffer/service/gpu_preferences.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const MakeGLContextCurrentCallback& make_context_current_cb, 62 const MakeGLContextCurrentCallback& make_context_current_cb,
63 const BindGLImageCallback& bind_image_cb); 63 const BindGLImageCallback& bind_image_cb);
64 64
65 static scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> 65 static scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl>
66 CreateWithGLES2Decoder( 66 CreateWithGLES2Decoder(
67 const GetGLContextCallback& get_gl_context_cb, 67 const GetGLContextCallback& get_gl_context_cb,
68 const MakeGLContextCurrentCallback& make_context_current_cb, 68 const MakeGLContextCurrentCallback& make_context_current_cb,
69 const BindGLImageCallback& bind_image_cb, 69 const BindGLImageCallback& bind_image_cb,
70 const GetGLES2DecoderCallback& get_gles2_decoder_cb); 70 const GetGLES2DecoderCallback& get_gles2_decoder_cb);
71 71
72 static scoped_ptr<GpuVideoDecodeAcceleratorFactoryImpl> CreateWithNoGL();
73
72 static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities( 74 static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities(
73 const gpu::GpuPreferences& gpu_preferences); 75 const gpu::GpuPreferences& gpu_preferences);
74 76
75 scoped_ptr<media::VideoDecodeAccelerator> CreateVDA( 77 scoped_ptr<media::VideoDecodeAccelerator> CreateVDA(
76 media::VideoDecodeAccelerator::Client* client, 78 media::VideoDecodeAccelerator::Client* client,
77 const media::VideoDecodeAccelerator::Config& config, 79 const media::VideoDecodeAccelerator::Config& config,
78 const gpu::GpuPreferences& gpu_preferences); 80 const gpu::GpuPreferences& gpu_preferences);
79 81
80 private: 82 private:
81 GpuVideoDecodeAcceleratorFactoryImpl( 83 GpuVideoDecodeAcceleratorFactoryImpl(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const GetGLES2DecoderCallback get_gles2_decoder_cb_; 119 const GetGLES2DecoderCallback get_gles2_decoder_cb_;
118 120
119 base::ThreadChecker thread_checker_; 121 base::ThreadChecker thread_checker_;
120 122
121 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl); 123 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactoryImpl);
122 }; 124 };
123 125
124 } // namespace content 126 } // namespace content
125 127
126 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_ 128 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698