[webkit-changes] [WebKit/WebKit] f68899: GraphicsContextGL::computeFormatAndTypeParameters ...

Kimmo Kinnunen noreply at github.com
Fri May 26 00:19:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f68899545f37bf5b76a1c1a5c7db9daa48f65c27
      https://github.com/WebKit/WebKit/commit/f68899545f37bf5b76a1c1a5c7db9daa48f65c27
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

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

  Log Message:
  -----------
  GraphicsContextGL::computeFormatAndTypeParameters has redundant output parameters
https://bugs.webkit.org/show_bug.cgi?id=257259
rdar://109772907

Reviewed by Dan Glastonbury.

The callers use the bytes per element value, so return that instead
of bytes per component and components per element.

* Source/WebCore/platform/graphics/GraphicsContextGL.cpp:
(WebCore::GraphicsContextGL::computeBytesPerElement):
(WebCore::GraphicsContextGL::computeImageSizeInBytes):
(WebCore::GraphicsContextGL::extractTextureData):
(WebCore::GraphicsContextGL::computeFormatAndTypeParameters): Deleted.
* Source/WebCore/platform/graphics/GraphicsContextGL.h:

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




More information about the webkit-changes mailing list