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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/cpu.h"
6 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
7 #include "base/logging.h" 8 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
9 #include "base/stl_util.h" 10 #include "base/stl_util.h"
10 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
11 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
12 #include "content/common/gpu/gpu_channel.h" 13 #include "content/common/gpu/gpu_channel.h"
13 #include "content/common/gpu/media/vaapi_picture.h" 14 #include "content/common/gpu/media/vaapi_picture.h"
14 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" 15 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h"
15 #include "media/base/bind_to_current_loop.h" 16 #include "media/base/bind_to_current_loop.h"
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 void VaapiVideoDecodeAccelerator::Destroy() { 732 void VaapiVideoDecodeAccelerator::Destroy() {
732 DCHECK_EQ(message_loop_, base::MessageLoop::current()); 733 DCHECK_EQ(message_loop_, base::MessageLoop::current());
733 Cleanup(); 734 Cleanup();
734 delete this; 735 delete this;
735 } 736 }
736 737
737 bool VaapiVideoDecodeAccelerator::CanDecodeOnIOThread() { 738 bool VaapiVideoDecodeAccelerator::CanDecodeOnIOThread() {
738 return false; 739 return false;
739 } 740 }
740 741
742 // static
743 media::VideoDecodeAccelerator::SupportedResolution
744 VaapiVideoDecodeAccelerator::GetSupportedResolution() {
745 media::VideoDecodeAccelerator::SupportedResolution resolution;
746 resolution.min.SetSize(16, 16);
747 base::CPU cpu;
748 // Ivy Bridge+ platforms can support more than 1920x1080.
749 if ((cpu.vendor_name() == "GenuineIntel") && cpu.model() >= 55)
robert.bradford 2015/01/27 12:27:58 I agree with piman@ here. This seems very dangerou
750 resolution.max.SetSize(4096, 2160);
751 else
752 resolution.max.SetSize(1920, 1088);
753 return resolution;
754 }
755
741 } // namespace content 756 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.h ('k') | content/common/gpu/media/vt_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698