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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator.cc

Issue 775863005: gpu: Make GPU command decoder know right format of a GPU video texture in Win. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dxva_video_decode_accelerator.cc to fetch BGRA Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/dxva_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc
index 2fc53e7188acfd223d8cb847dd96e2b866adc4c9..d36d3ff6d169e4ed04121f5a9a8f780cb3f2bbcc 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc
@@ -298,6 +298,7 @@ DXVAVideoDecodeAccelerator::DXVAPictureBuffer::Create(
"Failed to query ANGLE surface pointer",
linked_ptr<DXVAPictureBuffer>(NULL));
+ // FIXME: after moving to D3D11, use RGBA surface. crbug.com/438691
HRESULT hr = decoder.device_->CreateTexture(
buffer.size().width(),
buffer.size().height(),
@@ -697,6 +698,11 @@ bool DXVAVideoDecodeAccelerator::CanDecodeOnIOThread() {
return false;
}
+// FIXME: after moving to D3D11, remove this workaround. crbug.com/438691
+unsigned DXVAVideoDecodeAccelerator::GetSufaceInternalFormat() const {
+ return GL_BGRA_EXT;
+}
+
bool DXVAVideoDecodeAccelerator::InitDecoder(media::VideoCodecProfile profile) {
HMODULE decoder_dll = NULL;

Powered by Google App Engine
This is Rietveld 408576698