[webkit-changes] [WebKit/WebKit] 10d7bc: GraphicsContextCG uses memory redundantly for bool...

Kimmo Kinnunen noreply at github.com
Fri Jan 12 02:39:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 10d7bc6d7f3c880c1205f0b6c693abdea4537fc9
      https://github.com/WebKit/WebKit/commit/10d7bc6d7f3c880c1205f0b6c693abdea4537fc9
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2024-01-12 (Fri, 12 Jan 2024)

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

  Log Message:
  -----------
  GraphicsContextCG uses memory redundantly for bool fields
https://bugs.webkit.org/show_bug.cgi?id=267404
rdar://120837402

Reviewed by Antti Koivisto.

Mark some of the held bools as bitfields and reorder.

Before:
Total byte size: 808
Total pad bytes: 61
Padding percentage: 7.55 %

After:
Total byte size: 800
Total pad bytes: 60
Padding percentage: 7.50 %

* Source/WebCore/platform/graphics/GraphicsContext.h:
(WebCore::GraphicsContext::deferred const): Deleted.
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::consumeHasDrawn):
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.h:

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




More information about the webkit-changes mailing list