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

[WTR][Skia] Add support for web contents pixel results #26179

Merged

Conversation

carlosgcampos
Copy link
Contributor

@carlosgcampos carlosgcampos commented Mar 20, 2024

bcddb3e

[WTR][Skia] Add support for web contents pixel results
https://bugs.webkit.org/show_bug.cgi?id=271239

Reviewed by Alejandro G. Castro.

Add WKImageSkia with WKImageCreateSkImage() to be used from
dumpPixelsAndCompareWithExpected().

* Source/WebKit/Shared/API/c/cairo/WKImageCairo.cpp:
(WKImageCreateCairoSurface):
(WKImageCreateFromCairoSurface):
* Source/WebKit/Shared/API/c/cairo/WKImageCairo.h:
* Source/WebKit/Shared/API/c/skia/WKImageSkia.cpp: Copied from Source/WebKit/Shared/API/c/cairo/WKImageCairo.h.
(WKImageCreateSkImage):
* Source/WebKit/Shared/API/c/skia/WKImageSkia.h: Copied from Source/WebKit/Shared/API/c/cairo/WKImageCairo.h.
* Source/WebKit/SourcesGTK.txt:
* Source/WebKit/SourcesWPE.txt:
* Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
* Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp:
(WTR::TestInvocation::dumpPixelsAndCompareWithExpected):

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

239ccf0

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

@carlosgcampos carlosgcampos self-assigned this Mar 20, 2024
@carlosgcampos carlosgcampos added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Mar 20, 2024
Copy link
Contributor

@alexgcastro alexgcastro left a comment

Choose a reason for hiding this comment

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

Nice one! Closer to have the testing complete with skia.

@carlosgcampos carlosgcampos added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 20, 2024
https://bugs.webkit.org/show_bug.cgi?id=271239

Reviewed by Alejandro G. Castro.

Add WKImageSkia with WKImageCreateSkImage() to be used from
dumpPixelsAndCompareWithExpected().

* Source/WebKit/Shared/API/c/cairo/WKImageCairo.cpp:
(WKImageCreateCairoSurface):
(WKImageCreateFromCairoSurface):
* Source/WebKit/Shared/API/c/cairo/WKImageCairo.h:
* Source/WebKit/Shared/API/c/skia/WKImageSkia.cpp: Copied from Source/WebKit/Shared/API/c/cairo/WKImageCairo.h.
(WKImageCreateSkImage):
* Source/WebKit/Shared/API/c/skia/WKImageSkia.h: Copied from Source/WebKit/Shared/API/c/cairo/WKImageCairo.h.
* Source/WebKit/SourcesGTK.txt:
* Source/WebKit/SourcesWPE.txt:
* Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
* Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp:
(WTR::TestInvocation::dumpPixelsAndCompareWithExpected):

Canonical link: https://commits.webkit.org/276401@main
@webkit-commit-queue
Copy link
Collaborator

Committed 276401@main (bcddb3e): https://commits.webkit.org/276401@main

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

@webkit-commit-queue webkit-commit-queue merged commit bcddb3e into WebKit:main Mar 20, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 20, 2024
@carlosgcampos carlosgcampos deleted the skia-printing-pixel-tests branch March 20, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
4 participants