[webkit-changes] [WebKit/WebKit] 758d89: [WebXR] Remove ensure() method from GCGLOwned

Dan Glastonbury noreply at github.com
Tue Feb 13 17:35:36 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 758d8904919d17134c2b00877f4b82dbc8d2f494
      https://github.com/WebKit/WebKit/commit/758d8904919d17134c2b00877f4b82dbc8d2f494
  Author: Dan Glastonbury <djg at apple.com>
  Date:   2024-02-13 (Tue, 13 Feb 2024)

  Changed paths:
    M Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp
    M Source/WebCore/platform/graphics/GraphicsContextGL.h

  Log Message:
  -----------
  [WebXR] Remove ensure() method from GCGLOwned
https://bugs.webkit.org/show_bug.cgi?id=269283
rdar://122860406

Reviewed by Kimmo Kinnunen.

This method was only used in three places where allocation of an OpenGL object
was known to be taking place. Replace the ensure() calls with explicit
allocation and adopt() the results.

* Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:
(WebCore::createAndBindCompositorTexture):
(WebCore::createAndBindCompositorBuffer):
(WebCore::WebXROpaqueFramebuffer::setupFramebuffer):
* Source/WebCore/platform/graphics/GraphicsContextGL.h:
(WebCore::destroyFunc):

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




More information about the webkit-changes mailing list