summaryrefslogtreecommitdiff
path: root/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-09-29 16:16:15 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-11-09 10:04:06 +0000
commita95a7417ad456115a1ef2da4bb8320531c0821f1 (patch)
treeedcd59279e486d2fd4a8f88a7ed025bcf925c6e6 /chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc
parent33fc33aa94d4add0878ec30dc818e34e1dd3cc2a (diff)
downloadqtwebengine-chromium-a95a7417ad456115a1ef2da4bb8320531c0821f1.tar.gz
BASELINE: Update Chromium to 106.0.5249.126
Change-Id: Ib0bb21c437a7d1686e21c33f2d329f2ac425b7ab Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/438936 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc')
-rw-r--r--chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc b/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc
index 4ea2b6cbb0f..7c3e8e8b316 100644
--- a/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc
+++ b/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.cc
@@ -154,15 +154,11 @@ static bool IsVaapiSupportedJpeg(const JpegParseResult& jpeg) {
// Validate the coded size.
gfx::Size min_jpeg_resolution;
- if (!VaapiWrapper::GetDecodeMinResolution(VAProfileJPEGBaseline,
- &min_jpeg_resolution)) {
- DLOG(ERROR) << "Could not get the minimum resolution";
- return false;
- }
gfx::Size max_jpeg_resolution;
- if (!VaapiWrapper::GetDecodeMaxResolution(VAProfileJPEGBaseline,
- &max_jpeg_resolution)) {
- DLOG(ERROR) << "Could not get the maximum resolution";
+ if (!VaapiWrapper::GetSupportedResolutions(
+ VAProfileJPEGBaseline, VaapiWrapper::CodecMode::kDecode,
+ min_jpeg_resolution, max_jpeg_resolution)) {
+ DLOG(ERROR) << "Could not get the minimum and maximum resolutions";
return false;
}
const int actual_jpeg_coded_width =