Skip to content

Commit e22bac7

Browse files
committed
chromium-ozone-wayland: fix va-api.
After https://crrev.com/c/3141878, it's required to set supports_vaapi in properties to make Wayland use va-api. Fixes #592
1 parent c6d5a05 commit e22bac7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

meta-chromium/recipes-browser/chromium/files/chromium-wayland/0001-ozone-add-va-api-support-to-wayland.patch

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Signed-off-by: Maksim Sisov <msisov@igalia.com>
2323
.../gpu/vaapi/vaapi_video_decode_accelerator.cc | 4 ++--
2424
.../platform/wayland/gpu/gbm_pixmap_wayland.cc | 14 ++++++++++++--
2525
.../platform/wayland/gpu/gbm_pixmap_wayland.h | 3 +++
26-
5 files changed, 34 insertions(+), 6 deletions(-)
26+
.../platform/wayland/ozone_platform_wayland.cc | 3 +++
27+
6 files changed, 37 insertions(+), 6 deletions(-)
2728

2829
diff --git a/media/gpu/vaapi/vaapi_picture_factory.cc b/media/gpu/vaapi/vaapi_picture_factory.cc
2930
index 9c7d7387d24b2..400ea292e9d6e 100644
@@ -140,3 +141,16 @@ index e2af8c3d3233c..5a54fd7f96aec 100644
140141
};
141142

142143
} // namespace ui
144+
diff --git a/ui/ozone/platform/wayland/ozone_platform_wayland.cc b/ui/ozone/platform/wayland/ozone_platform_wayland.cc
145+
index 7334bf8225e48..2f29dc66d02f6 100644
146+
--- a/ui/ozone/platform/wayland/ozone_platform_wayland.cc
147+
+++ b/ui/ozone/platform/wayland/ozone_platform_wayland.cc
148+
@@ -314,6 +314,9 @@ class OzonePlatformWayland : public OzonePlatform,
149+
// coordinates, instead only surface-local ones are supported.
150+
properties->supports_global_screen_coordinates = false;
151+
152+
+ // Let the media know this platform supports va-api.
153+
+ properties->supports_vaapi = true;
154+
+
155+
initialised = true;
156+
}

0 commit comments

Comments
 (0)