Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f4965a75f447b0122f1e7e5895c341e83b7d27a3
      
https://github.com/WebKit/WebKit/commit/f4965a75f447b0122f1e7e5895c341e83b7d27a3
  Author: Ruthvik Konda <[email protected]>
  Date:   2026-04-21 (Tue, 21 Apr 2026)

  Changed paths:
    M Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp
    M Source/WebCore/Modules/webxr/WebXRWebGLSwapchain.cpp

  Log Message:
  -----------
  Remove unnecessary RefPtr { } wrapper in WebXR code
https://bugs.webkit.org/show_bug.cgi?id=312857
rdar://175227740

Reviewed by Ryosuke Niwa.

The .hardwareBuffer field is RefPtr<AHardwareBuffer> and the source is also
RefPtr<AHardwareBuffer>&, so RefPtr's copy constructor handles the refcount
increment directly. The explicit RefPtr { } wrapper is redundant.

No new tests needed (no behavioral change).

* Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:
(WebCore::makeExternalImageSource):
* Source/WebCore/Modules/webxr/WebXRWebGLSwapchain.cpp:
(WebCore::WebXRWebGLSwapchain::makeExternalImageSource):

Canonical link: https://commits.webkit.org/311719@main



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

Reply via email to