[Webkit-unassigned] [Bug 282380] [GTK][WPE][Skia] WebKitTestRunner asserts when generating pixel test dumps in SKIA_DEBUG enabled builds
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 31 03:20:57 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=282380
--- Comment #2 from Nikolas Zimmermann <zimmermann at kde.org> ---
Easiest way to fix:
```
diff --git a/Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp b/Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp
index b6d7e81cf7a7..39ec9b69f03c 100644
--- a/Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp
+++ b/Tools/WebKitTestRunner/skia/TestInvocationSkia.cpp
@@ -44,12 +44,12 @@ namespace WTR {
static std::string computeSHA1HashStringForPixmap(const SkPixmap& pixmap)
{
size_t pixelsWidth = pixmap.width();
- size_t pixelsHight = pixmap.height();
+ size_t pixelsHeight = pixmap.height();
size_t bytesPerRow = pixmap.info().minRowBytes();
SHA1 sha1;
- const auto* bitmapData = pixmap.addr8();
- for (size_t row = 0; row < pixelsHight; ++row) {
+ const auto* bitmapData = reinterpret_cast<const uint8_t*>(pixmap.addr32());
+ for (size_t row = 0; row < pixelsHeight; ++row) {
sha1.addBytes(std::span { bitmapData, 4 * pixelsWidth });
bitmapData += bytesPerRow;
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241031/2fcc14c3/attachment.htm>
More information about the webkit-unassigned
mailing list