Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bd2c0f76939390a3060fff96334531e211e3d89e
      
https://github.com/WebKit/WebKit/commit/bd2c0f76939390a3060fff96334531e211e3d89e
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2025-11-11 (Tue, 11 Nov 2025)

  Changed paths:
    M Source/WebKit/WPEPlatform/wpe/WPEBufferAndroid.cpp

  Log Message:
  -----------
  [WPEPlatform] Properly obtain the EGLClientBuffer for an AHardwareBuffer
https://bugs.webkit.org/show_bug.cgi?id=302327

Reviewed by Nikolas Zimmermann.

Fix EGLImage creation from AHardwareBuffer by properly using the
eglGetNativeClientBufferANDROID() function as required by Android EGL,
instead of directly casting AHardwareBuffer pointers to EGLClientBuffer.

This fixes the "Failed to create EGLImage from AHardwareBuffer" error
that prevents hardware-accelerated rendering on Android.

* Source/WebKit/WPEPlatform/wpe/WPEBufferAndroid.cpp:
(createImageEGL15): Receive EGLClientBuffer instead of AHardwareBuffer.
(createImageKHRImageBase): Ditto.
(wpeBufferAndroidImportToEGLImage): Obtain the EGLClientBuffer for the
AHardwareBuffer, and pass it instead to the helper functions used to
create the EGLImage for the buffer.

Co-authored-by: Felipe Erias <[email protected]>
Canonical link: https://commits.webkit.org/302857@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to