New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break cyclic dependency between GraphicsLayer and GraphicsLayerContentsDisplayDelegate #6140
Closed
mwyrzykowski
wants to merge
1
commit into
WebKit:main
from
mwyrzykowski:eng/Break-cyclic-dependency-between-GraphicsLayer-and-GraphicsLayerContentsDisplayDelegate
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mwyrzykowski
added
Layout and Rendering
For bugs with layout and rendering of Web pages.
Other
labels
Nov 4, 2022
EWS run on previous version of this PR (hash fb938f4) |
smfr
approved these changes
Nov 4, 2022
#pragma once | ||
|
||
namespace WebCore { | ||
enum class GraphicsLayerCompositingCoordinatesOrientation : uint8_t { TopDown, BottomUp }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be OK omitting the "GraphicsLayer" prefix.
β¦tsDisplayDelegate https://bugs.webkit.org/show_bug.cgi?id=247494 <radar://101965027> Reviewed by NOBODY (OOPS!). GraphicsLayer.h uses a RefPtr<ContentsDisplayDelegate> which requires the full definition on windows, but ContentsDisplayDelegate includes GraphicsLayer.h for the purpose of using a nested enum. Break this by moving the enum class to its own header file. * Source/WebCore/Headers.cmake: Add new files. * Source/WebCore/platform/graphics/CompositingCoordinatesOrientation.h: Copied from Source/WebCore/platform/graphics/GraphicsLayerContentsDisplayDelegate.cpp. Move enum class to its own header file. * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/platform/graphics/GraphicsLayer.h: (WebCore::GraphicsLayer::setContentsOrientation): (WebCore::GraphicsLayer::contentsOrientation const): * Source/WebCore/platform/graphics/GraphicsLayerContentsDisplayDelegate.cpp: (WebCore::GraphicsLayerContentsDisplayDelegate::orientation const): * Source/WebCore/platform/graphics/GraphicsLayerContentsDisplayDelegate.h: * Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp: * Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h: * Source/WebCore/platform/graphics/ca/PlatformCALayerClient.h: (WebCore::PlatformCALayerClient::platformCALayerContentsOrientation const): * Source/WebCore/platform/graphics/ca/TileCoverageMap.h: * Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: (WebCore::PlatformCALayer::drawLayerContents): * Source/WebCore/platform/graphics/cocoa/WebProcessGraphicsContextGLCocoa.mm: * Source/WebKit/WebProcess/GPU/graphics/cocoa/RemoteGraphicsContextGLProxyCocoa.mm: Rename nested enum.
mwyrzykowski
force-pushed
the
eng/Break-cyclic-dependency-between-GraphicsLayer-and-GraphicsLayerContentsDisplayDelegate
branch
from
November 4, 2022 18:21
fb938f4
to
4c22fa0
Compare
EWS run on current version of this PR (hash 4c22fa0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
4c22fa0
4c22fa0
π π§ͺ winπ mac-debugπ wincairoπ§ͺ ios-wk2π§ͺ gtk-wk2π§ͺ api-iosπ§ͺ api-macπ§ͺ api-gtkπ tvπ§ͺ mac-wk1π tv-simπ§ͺ mac-wk2π watchπ§ͺ mac-AS-debug-wk2π watch-simπ§ͺ mac-wk2-stress