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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 2752143002: [dxvavda] Mark NV12 textures as allowing overlays. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_video_decode_accelerator_win.cc
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc
index 68618c069496ed1fa91d6dd5ec87f5b32d1a954f..3b5abf5b24099ebfed71fafc7501aa9d7b092e09 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -2089,14 +2089,15 @@ void DXVAVideoDecodeAccelerator::RequestPictureBuffers(int width, int height) {
void DXVAVideoDecodeAccelerator::NotifyPictureReady(
int picture_buffer_id,
int input_buffer_id,
- const gfx::ColorSpace& color_space) {
+ const gfx::ColorSpace& color_space,
+ bool allow_overlay) {
DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
// This task could execute after the decoder has been torn down.
if (GetState() != kUninitialized && client_) {
// TODO(henryhsu): Use correct visible size instead of (0, 0). We can't use
// coded size here so use (0, 0) intentionally to have the client choose.
Picture picture(picture_buffer_id, input_buffer_id, gfx::Rect(0, 0),
- color_space, false);
+ color_space, allow_overlay);
client_->PictureReady(picture);
}
}
@@ -2507,7 +2508,8 @@ void DXVAVideoDecodeAccelerator::CopySurfaceComplete(
PLATFORM_FAILURE, );
NotifyPictureReady(picture_buffer->id(), input_buffer_id,
- picture_buffer->color_space());
+ picture_buffer->color_space(),
+ picture_buffer->AllowOverlay());
{
base::AutoLock lock(decoder_lock_);
@@ -2560,7 +2562,8 @@ void DXVAVideoDecodeAccelerator::BindPictureBufferToSample(
PLATFORM_FAILURE, );
NotifyPictureReady(picture_buffer->id(), input_buffer_id,
- picture_buffer->color_space());
+ picture_buffer->color_space(),
+ picture_buffer->AllowOverlay());
{
base::AutoLock lock(decoder_lock_);
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698