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

Side by Side Diff: media/gpu/dxva_video_decode_accelerator_win.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
7 7
8 #include <d3d11_1.h> 8 #include <d3d11_1.h>
9 #include <d3d9.h> 9 #include <d3d9.h>
10 #include <initguid.h> 10 #include <initguid.h>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void Flush() override; 129 void Flush() override;
130 void Reset() override; 130 void Reset() override;
131 void Destroy() override; 131 void Destroy() override;
132 bool TryToSetupDecodeOnSeparateThread( 132 bool TryToSetupDecodeOnSeparateThread(
133 const base::WeakPtr<Client>& decode_client, 133 const base::WeakPtr<Client>& decode_client,
134 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) 134 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner)
135 override; 135 override;
136 GLenum GetSurfaceInternalFormat() const override; 136 GLenum GetSurfaceInternalFormat() const override;
137 137
138 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles( 138 static VideoDecodeAccelerator::SupportedProfiles GetSupportedProfiles(
139 const gpu::GpuPreferences& gpu_preferences); 139 const gpu::GpuPreferences& gpu_preferences,
140 const gpu::GpuDriverBugWorkarounds& workarounds);
140 141
141 // Preload dlls required for decoding. 142 // Preload dlls required for decoding.
142 static void PreSandboxInitialization(); 143 static void PreSandboxInitialization();
143 144
144 private: 145 private:
145 friend class DXVAPictureBuffer; 146 friend class DXVAPictureBuffer;
146 friend class EGLStreamCopyPictureBuffer; 147 friend class EGLStreamCopyPictureBuffer;
147 friend class EGLStreamPictureBuffer; 148 friend class EGLStreamPictureBuffer;
148 friend class PbufferPictureBuffer; 149 friend class PbufferPictureBuffer;
149 typedef void* EGLConfig; 150 typedef void* EGLConfig;
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 567
567 // Function pointer for the MFCreateDXGIDeviceManager API. 568 // Function pointer for the MFCreateDXGIDeviceManager API.
568 static CreateDXGIDeviceManager create_dxgi_device_manager_; 569 static CreateDXGIDeviceManager create_dxgi_device_manager_;
569 570
570 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); 571 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator);
571 }; 572 };
572 573
573 } // namespace media 574 } // namespace media
574 575
575 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 576 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698