Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: af0b4e780f10b1856612fe0018051522a06a8d2b
https://github.com/WebKit/WebKit/commit/af0b4e780f10b1856612fe0018051522a06a8d2b
Author: Simon Fraser <[email protected]>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
M Source/WebCore/Modules/ShapeDetection/BarcodeDetector.cpp
M Source/WebCore/html/ImageBitmap.cpp
M Source/WebCore/html/ImageBitmap.h
M Source/WebCore/platform/graphics/BitmapImage.cpp
M Source/WebCore/platform/graphics/GraphicsContextGL.cpp
M Source/WebCore/platform/graphics/Pattern.cpp
M Source/WebCore/platform/graphics/Pattern.h
M Source/WebCore/platform/graphics/SourceImage.cpp
M Source/WebCore/platform/graphics/SourceImage.h
M
Source/WebCore/platform/graphics/ca/cocoa/GraphicsLayerAsyncContentsDisplayDelegateCocoa.mm
M Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.h
M
Source/WebCore/platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp
M Source/WebCore/platform/graphics/cg/NativeImageCG.cpp
M Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp
M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm
M Source/WebCore/platform/graphics/mac/controls/ControlMac.mm
M Source/WebCore/platform/graphics/mac/controls/ProgressBarMac.mm
M Source/WebCore/platform/graphics/skia/PatternSkia.cpp
M Source/WebCore/platform/graphics/texmap/TextureMapper.cpp
M Source/WebCore/rendering/svg/RenderSVGImage.cpp
Log Message:
-----------
Get GraphicsLayer.h out of some hot include paths
https://bugs.webkit.org/show_bug.cgi?id=283454
rdar://140314709
Reviewed by Jer Noble.
GraphicsLayer.h is one of the more expensive headers, and it's included via
these include paths:
47x: DocumentInlines.h LocalDOMWindow.h DOMWindow.h ImageBitmap.h
ImageBuffer.h ImageBufferBackend.h GraphicsLayerContentsDisplayDelegate.h
36x: GraphicsContext.h GraphicsContextState.h SourceBrush.h Pattern.h
SourceImage.h ImageBuffer.h ImageBufferBackend.h
GraphicsLayerContentsDisplayDelegate.h
27x: ElementInlines.h DocumentInlines.h LocalDOMWindow.h DOMWindow.h
ImageBitmap.h ImageBuffer.h ImageBufferBackend.h
GraphicsLayerContentsDisplayDelegate.h
19x: ChromeClient.h GraphicsContext.h GraphicsContextState.h SourceBrush.h
Pattern.h SourceImage.h ImageBuffer.h ImageBufferBackend.h
GraphicsLayerContentsDisplayDelegate.h
16x: Editor.h FrameSelection.h CaretAnimator.h RenderTheme.h
GraphicsContext.h GraphicsContextState.h SourceBrush.h Pattern.h SourceImage.h
ImageBuffer.h ImageBufferBackend.h GraphicsLayerContentsDisplayDelegate.h
15x: LocalDOMWindow.h DOMWindow.h ImageBitmap.h ImageBuffer.h
ImageBufferBackend.h GraphicsLayerContentsDisplayDelegate.h
Break the include chain by having ImageBitmap.h and SourceImage.h not include
ImageBuffer.h, and fix the fallout.
* Source/WebCore/Modules/ShapeDetection/BarcodeDetector.cpp:
* Source/WebCore/html/ImageBitmap.cpp:
(WebCore::DetachedImageBitmap::memoryCost const):
(WebCore::ImageBitmap::buffer const):
(WebCore::ImageBitmap::close):
* Source/WebCore/html/ImageBitmap.h:
(WebCore::DetachedImageBitmap::memoryCost const): Deleted.
* Source/WebCore/platform/graphics/BitmapImage.cpp:
* Source/WebCore/platform/graphics/GraphicsContextGL.cpp:
* Source/WebCore/platform/graphics/Pattern.cpp:
(WebCore::Pattern::tileImage const):
(WebCore::Pattern::tileNativeImage const):
(WebCore::Pattern::tileImageBuffer const):
(WebCore::Pattern::setTileImage):
* Source/WebCore/platform/graphics/Pattern.h:
* Source/WebCore/platform/graphics/SourceImage.cpp:
* Source/WebCore/platform/graphics/SourceImage.h:
*
Source/WebCore/platform/graphics/ca/cocoa/GraphicsLayerAsyncContentsDisplayDelegateCocoa.mm:
* Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.h:
* Source/WebCore/platform/graphics/cg/NativeImageCG.cpp:
* Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp:
* Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm:
* Source/WebCore/platform/graphics/mac/controls/ControlMac.mm:
* Source/WebCore/platform/graphics/mac/controls/ProgressBarMac.mm:
* Source/WebCore/platform/graphics/skia/PatternSkia.cpp:
* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
* Source/WebCore/rendering/svg/RenderSVGImage.cpp:
Canonical link: https://commits.webkit.org/286910@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes