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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/vaapi_video_decode_accelerator.h" 5 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 992
993 scoped_refptr<VaapiVideoDecodeAccelerator::VaapiDecodeSurface> 993 scoped_refptr<VaapiVideoDecodeAccelerator::VaapiDecodeSurface>
994 VaapiVideoDecodeAccelerator::CreateSurface() { 994 VaapiVideoDecodeAccelerator::CreateSurface() {
995 DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); 995 DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread());
996 base::AutoLock auto_lock(lock_); 996 base::AutoLock auto_lock(lock_);
997 997
998 if (available_va_surfaces_.empty()) 998 if (available_va_surfaces_.empty())
999 return nullptr; 999 return nullptr;
1000 1000
1001 DCHECK(!awaiting_va_surfaces_recycle_); 1001 DCHECK(!awaiting_va_surfaces_recycle_);
1002 scoped_refptr<VASurface> va_surface( 1002 scoped_refptr<VASurface> va_surface(new VASurface(
1003 new VASurface(available_va_surfaces_.front(), requested_pic_size_, 1003 available_va_surfaces_.front(), requested_pic_size_,
1004 va_surface_release_cb_)); 1004 vaapi_wrapper_->va_surface_format(), va_surface_release_cb_));
1005 available_va_surfaces_.pop_front(); 1005 available_va_surfaces_.pop_front();
1006 1006
1007 scoped_refptr<VaapiDecodeSurface> dec_surface = 1007 scoped_refptr<VaapiDecodeSurface> dec_surface =
1008 new VaapiDecodeSurface(curr_input_buffer_->id, va_surface); 1008 new VaapiDecodeSurface(curr_input_buffer_->id, va_surface);
1009 1009
1010 return dec_surface; 1010 return dec_surface;
1011 } 1011 }
1012 1012
1013 VaapiVideoDecodeAccelerator::VaapiH264Accelerator::VaapiH264Accelerator( 1013 VaapiVideoDecodeAccelerator::VaapiH264Accelerator::VaapiH264Accelerator(
1014 VaapiVideoDecodeAccelerator* vaapi_dec, 1014 VaapiVideoDecodeAccelerator* vaapi_dec,
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 return vaapi_pic->dec_surface(); 1732 return vaapi_pic->dec_surface();
1733 } 1733 }
1734 1734
1735 // static 1735 // static
1736 media::VideoDecodeAccelerator::SupportedProfiles 1736 media::VideoDecodeAccelerator::SupportedProfiles
1737 VaapiVideoDecodeAccelerator::GetSupportedProfiles() { 1737 VaapiVideoDecodeAccelerator::GetSupportedProfiles() {
1738 return VaapiWrapper::GetSupportedDecodeProfiles(); 1738 return VaapiWrapper::GetSupportedDecodeProfiles();
1739 } 1739 }
1740 1740
1741 } // namespace content 1741 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698