-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[WPE] WPE Platform: add a connect method to WPEDisplayDRM to use a custom device file #34453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
EWS run on previous version of this PR (hash 930b4e6)
|
930b4e6
to
809d3e8
Compare
EWS run on previous version of this PR (hash 809d3e8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* wpe_display_headless_new_for_device: | |
* wpe_display_headless_new_for_device: (skip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use a different error here, DRM device "%s" not found
, or something similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g_set_error(error, WPE_DISPLAY_ERROR, WPE_DISPLAY_ERROR_NOT_SUPPORTED, "DRM device not supported"); | |
g_set_error_literal(error, WPE_DISPLAY_ERROR, WPE_DISPLAY_ERROR_NOT_SUPPORTED, "DRM device not supported"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g_set_error(error, WPE_DISPLAY_ERROR, WPE_DISPLAY_ERROR_NOT_SUPPORTED, "No DRM devices found"); | |
g_set_error_literal(error, WPE_DISPLAY_ERROR, WPE_DISPLAY_ERROR_NOT_SUPPORTED, "No DRM devices found"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's no primary or render node, we should initialize to a null CString.
809d3e8
to
25e89ac
Compare
EWS run on previous version of this PR (hash 25e89ac) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add g_return_val_if_fail(WPE_IS_DISPLAY_DRM(display), FALSE);
25e89ac
to
29dec7b
Compare
EWS run on current version of this PR (hash 29dec7b) |
…stom device file https://bugs.webkit.org/show_bug.cgi?id=265654 Reviewed by Carlos Garcia Campos. Adding a wpe_display_drm_connect() to the DRM platform's API, so that the DRM device to connect to may be specified by the device name. * Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp: (wpeDisplayDRMSetup): a setup function to be called by the two functions below (wpeDisplayDRMConnect): (wpe_display_drm_connect): * Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.h: Canonical link: https://commits.webkit.org/285545@main
29dec7b
to
f98baf3
Compare
Committed 285545@main (f98baf3): https://commits.webkit.org/285545@main Reviewed commits have been landed. Closing PR #34453 and removing active labels. |
f98baf3
29dec7b
🧪 wpe-wk2🧪 api-gtk