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

Side by Side Diff: media/gpu/gpu_video_decode_accelerator_factory.h

Issue 2682723003: Make disabling accelerated VPX decoding a GPU driver bug workaround. (Closed)
Patch Set: rebase Created 3 years, 7 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 MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_H_ 5 #ifndef MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_H_
6 #define MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_H_ 6 #define MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 static std::unique_ptr<GpuVideoDecodeAcceleratorFactory> 63 static std::unique_ptr<GpuVideoDecodeAcceleratorFactory>
64 CreateWithGLES2Decoder( 64 CreateWithGLES2Decoder(
65 const GetGLContextCallback& get_gl_context_cb, 65 const GetGLContextCallback& get_gl_context_cb,
66 const MakeGLContextCurrentCallback& make_context_current_cb, 66 const MakeGLContextCurrentCallback& make_context_current_cb,
67 const BindGLImageCallback& bind_image_cb, 67 const BindGLImageCallback& bind_image_cb,
68 const GetGLES2DecoderCallback& get_gles2_decoder_cb); 68 const GetGLES2DecoderCallback& get_gles2_decoder_cb);
69 69
70 static std::unique_ptr<GpuVideoDecodeAcceleratorFactory> CreateWithNoGL(); 70 static std::unique_ptr<GpuVideoDecodeAcceleratorFactory> CreateWithNoGL();
71 71
72 static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities( 72 static gpu::VideoDecodeAcceleratorCapabilities GetDecoderCapabilities(
73 const gpu::GpuPreferences& gpu_preferences); 73 const gpu::GpuPreferences& gpu_preferences,
74 const gpu::GpuDriverBugWorkarounds& workarounds);
74 75
75 std::unique_ptr<VideoDecodeAccelerator> CreateVDA( 76 std::unique_ptr<VideoDecodeAccelerator> CreateVDA(
76 VideoDecodeAccelerator::Client* client, 77 VideoDecodeAccelerator::Client* client,
77 const VideoDecodeAccelerator::Config& config, 78 const VideoDecodeAccelerator::Config& config,
78 const gpu::GpuDriverBugWorkarounds& workarounds, 79 const gpu::GpuDriverBugWorkarounds& workarounds,
79 const gpu::GpuPreferences& gpu_preferences); 80 const gpu::GpuPreferences& gpu_preferences);
80 81
81 private: 82 private:
82 GpuVideoDecodeAcceleratorFactory( 83 GpuVideoDecodeAcceleratorFactory(
83 const GetGLContextCallback& get_gl_context_cb, 84 const GetGLContextCallback& get_gl_context_cb,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const GetGLES2DecoderCallback get_gles2_decoder_cb_; 124 const GetGLES2DecoderCallback get_gles2_decoder_cb_;
124 125
125 base::ThreadChecker thread_checker_; 126 base::ThreadChecker thread_checker_;
126 127
127 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactory); 128 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAcceleratorFactory);
128 }; 129 };
129 130
130 } // namespace media 131 } // namespace media
131 132
132 #endif // MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_H_ 133 #endif // MEDIA_GPU_GPU_VIDEO_DECODE_ACCELERATOR_FACTORY_H_
OLDNEW
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | media/gpu/gpu_video_decode_accelerator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698