Bug 194497 - [WPE] Do not try to create empty egl windows
Summary: [WPE] Do not try to create empty egl windows
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-11 04:06 PST by Carlos Garcia Campos
Modified: 2019-02-11 06:09 PST (History)
3 users (show)

See Also:


Attachments
Patch (2.08 KB, patch)
2019-02-11 04:08 PST, Carlos Garcia Campos
zan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2019-02-11 04:06:49 PST
In AcceleratedSurfaceWPE we ensure the size we pass to wpe is at least 0x0, but wl_egl_window_create() returns nullptr if 0 is passed as width or height. We should use at least 1x1 instead.
Comment 1 Carlos Garcia Campos 2019-02-11 04:08:44 PST
Created attachment 361671 [details]
Patch
Comment 2 Carlos Garcia Campos 2019-02-11 06:08:11 PST
Committed r241262: <https://trac.webkit.org/changeset/241262>