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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/vaapi_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.cc b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
index b5f2b908f993e6cbcafca7b12a3edb93af25cb49..384e0a13b68e57525db6cc0cb7c12f2b33b3a054 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "base/cpu.h"
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
@@ -738,4 +739,18 @@ bool VaapiVideoDecodeAccelerator::CanDecodeOnIOThread() {
return false;
}
+// static
+media::VideoDecodeAccelerator::SupportedResolution
+VaapiVideoDecodeAccelerator::GetSupportedResolution() {
+ media::VideoDecodeAccelerator::SupportedResolution resolution;
+ resolution.min.SetSize(16, 16);
+ base::CPU cpu;
+ // Ivy Bridge+ platforms can support more than 1920x1080.
+ 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
+ resolution.max.SetSize(4096, 2160);
+ else
+ resolution.max.SetSize(1920, 1088);
+ return resolution;
+}
+
} // namespace content
« 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