[webkit-changes] [WebKit/WebKit] 143e04: Devirtualize GraphicsContext::drawConsumingImageBu...

Said Abou-Hallawa noreply at github.com
Thu Apr 6 18:13:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 143e04df42bbcc533981678f616037385497041e
      https://github.com/WebKit/WebKit/commit/143e04df42bbcc533981678f616037385497041e
  Author: Said Abou-Hallawa <said at apple.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

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

  Log Message:
  -----------
  Devirtualize GraphicsContext::drawConsumingImageBuffer()
https://bugs.webkit.org/show_bug.cgi?id=251809
rdar://105092612

Reviewed by Tim Horton.

The method will be resolved to ImageBuffer::drawConsuming() which will draw
a NativeImage via GraphicsContext::drawNativeImage() which is virtual.

* Source/WebCore/platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::drawRaisedEllipse):
(WebCore::NullGraphicsContext::drawConsumingImageBuffer): Deleted.
* Source/WebCore/platform/graphics/GraphicsContext.h:
(WebCore::GraphicsContext::drawConsumingImageBuffer):
* Source/WebCore/platform/graphics/NullGraphicsContext.h:
(WebCore::NullGraphicsContext::drawImageBuffer):
(WebCore::NullGraphicsContext::drawConsumingImageBuffer): Deleted.

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




More information about the webkit-changes mailing list