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

Side by Side Diff: content/common/gpu/media/dxva_video_decode_accelerator.cc

Issue 881893002: Revert of Plumb allow_overlay flag for video path into cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" 5 #include "content/common/gpu/media/dxva_video_decode_accelerator.h"
6 6
7 #if !defined(OS_WIN) 7 #if !defined(OS_WIN)
8 #error This file should only be built on Windows. 8 #error This file should only be built on Windows.
9 #endif // !defined(OS_WIN) 9 #endif // !defined(OS_WIN)
10 10
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 } 1234 }
1235 } 1235 }
1236 1236
1237 void DXVAVideoDecodeAccelerator::NotifyPictureReady( 1237 void DXVAVideoDecodeAccelerator::NotifyPictureReady(
1238 int picture_buffer_id, 1238 int picture_buffer_id,
1239 int input_buffer_id, 1239 int input_buffer_id,
1240 const gfx::Rect& picture_buffer_size) { 1240 const gfx::Rect& picture_buffer_size) {
1241 DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); 1241 DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
1242 // This task could execute after the decoder has been torn down. 1242 // This task could execute after the decoder has been torn down.
1243 if (GetState() != kUninitialized && client_) { 1243 if (GetState() != kUninitialized && client_) {
1244 media::Picture picture(picture_buffer_id, input_buffer_id, 1244 media::Picture picture(picture_buffer_id,
1245 picture_buffer_size, false); 1245 input_buffer_id,
1246 picture_buffer_size);
1246 client_->PictureReady(picture); 1247 client_->PictureReady(picture);
1247 } 1248 }
1248 } 1249 }
1249 1250
1250 void DXVAVideoDecodeAccelerator::NotifyInputBuffersDropped() { 1251 void DXVAVideoDecodeAccelerator::NotifyInputBuffersDropped() {
1251 DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); 1252 DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
1252 if (!client_) 1253 if (!client_)
1253 return; 1254 return;
1254 1255
1255 for (PendingInputs::iterator it = pending_input_buffers_.begin(); 1256 for (PendingInputs::iterator it = pending_input_buffers_.begin();
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 FROM_HERE, 1624 FROM_HERE,
1624 base::Bind(&DXVAVideoDecodeAccelerator::CopySurfaceComplete, 1625 base::Bind(&DXVAVideoDecodeAccelerator::CopySurfaceComplete,
1625 weak_this_factory_.GetWeakPtr(), 1626 weak_this_factory_.GetWeakPtr(),
1626 src_surface, 1627 src_surface,
1627 dest_surface, 1628 dest_surface,
1628 picture_buffer_id, 1629 picture_buffer_id,
1629 input_buffer_id)); 1630 input_buffer_id));
1630 } 1631 }
1631 1632
1632 } // namespace content 1633 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698