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 df1f6443421d197b67aa31ef61634307175a242d..a38e81e8a9cb930d6f3c27ce5c81dcc7da935d4f 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" |
@@ -251,6 +252,20 @@ VaapiVideoDecodeAccelerator::~VaapiVideoDecodeAccelerator() { |
DCHECK_EQ(message_loop_, base::MessageLoop::current()); |
} |
+// static |
+media::VideoDecodeAccelerator::SupportedResolution |
wuchengli
2014/12/26 09:37:07
Move this to match the order in the header file.
henryhsu
2014/12/26 10:25:18
Done.
|
+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) |
+ resolution.max.SetSize(4096, 2160); |
+ else |
+ resolution.max.SetSize(1920, 1088); |
+ return resolution; |
+} |
+ |
class XFreeDeleter { |
public: |
void operator()(void* x) const { |