Skip to content
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

Use a different layer border color with UI-side compositing #9358

Conversation

smfr
Copy link
Contributor

@smfr smfr commented Jan 31, 2023

288bbe8

Use a different layer border color with UI-side compositing
https://bugs.webkit.org/show_bug.cgi?id=251406
<rdar://problem/104844082>

Reviewed by Sam Weinig and Tim Horton.

The value returned by GraphicsLayerCA::pageTiledBackingBorderColor() will be the legacy page tile
border color once UI-side compositing is enabled by default. Change it to something more navy/gray,
so that it can be distinguished from the UI-side compositing colors in screenshots.

Also do a drive-by fix where the RemoteLayerTreeDrawingArea "root" layer should not get
sized to the contents size on macOS, where we don't delegate scrolling to a native view.

* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::pageTiledBackingBorderColor const):
(WebCore::GraphicsLayerCA::getDebugBorderInfo const):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.cpp:
(WebKit::GraphicsLayerCARemote::pageTiledBackingBorderColor const):
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.h:
* Source/WebKit/WebProcess/WebPage/mac/RemoteLayerTreeDrawingAreaMac.h:
* Source/WebKit/WebProcess/WebPage/mac/RemoteLayerTreeDrawingAreaMac.mm:
(WebKit::RemoteLayerTreeDrawingAreaMac::mainFrameContentSizeChanged):

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

9fbb234

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style   πŸ›  ios   πŸ›  mac βœ… πŸ›  wpe   πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings   πŸ›  ios-sim   πŸ›  mac-AS-debug βœ… πŸ›  gtk   πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2   πŸ§ͺ api-mac   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios   πŸ§ͺ mac-wk1   πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-wk2
  πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2
  πŸ›  watch   πŸ§ͺ mac-wk2-stress
❌ πŸ›  πŸ§ͺ merge   πŸ›  watch-sim

@smfr smfr requested a review from cdumez as a code owner January 31, 2023 01:25
@smfr smfr self-assigned this Jan 31, 2023
@smfr smfr added the Compositing Bugs related to layerization for transforms, video, scrolling etc label Jan 31, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 31, 2023
Copy link
Contributor

@weinig weinig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hortont424 knows my request for a legend to identify what these colors mean still stands.

@smfr smfr removed the merging-blocked Applied to prevent a change from being merged label Jan 31, 2023
@smfr smfr force-pushed the eng/Use-a-different-layer-border-color-with-UI-side-compositing branch from 8ef0b7c to 9fbb234 Compare January 31, 2023 17:55
@smfr smfr added the merge-queue Applied to send a pull request to merge-queue label Jan 31, 2023
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/Use-a-different-layer-border-color-with-UI-side-compositing branch 2 times, most recently from 515eb88 to 18d49fc Compare January 31, 2023 19:03
https://bugs.webkit.org/show_bug.cgi?id=251406
<rdar://problem/104844082>

Reviewed by Sam Weinig and Tim Horton.

The value returned by GraphicsLayerCA::pageTiledBackingBorderColor() will be the legacy page tile
border color once UI-side compositing is enabled by default. Change it to something more navy/gray,
so that it can be distinguished from the UI-side compositing colors in screenshots.

Also do a drive-by fix where the RemoteLayerTreeDrawingArea "root" layer should not get
sized to the contents size on macOS, where we don't delegate scrolling to a native view.

* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::pageTiledBackingBorderColor const):
(WebCore::GraphicsLayerCA::getDebugBorderInfo const):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.cpp:
(WebKit::GraphicsLayerCARemote::pageTiledBackingBorderColor const):
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.h:
* Source/WebKit/WebProcess/WebPage/mac/RemoteLayerTreeDrawingAreaMac.h:
* Source/WebKit/WebProcess/WebPage/mac/RemoteLayerTreeDrawingAreaMac.mm:
(WebKit::RemoteLayerTreeDrawingAreaMac::mainFrameContentSizeChanged):

Canonical link: https://commits.webkit.org/259637@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/Use-a-different-layer-border-color-with-UI-side-compositing branch from 18d49fc to 288bbe8 Compare January 31, 2023 19:06
@webkit-commit-queue
Copy link
Collaborator

Committed 259637@main (288bbe8): https://commits.webkit.org/259637@main

Reviewed commits have been landed. Closing PR #9358 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 288bbe8 into WebKit:main Jan 31, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Jan 31, 2023
@smfr smfr deleted the eng/Use-a-different-layer-border-color-with-UI-side-compositing branch February 22, 2023 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compositing Bugs related to layerization for transforms, video, scrolling etc
Projects
None yet
6 participants