The attached patch extends the DIBPixelData class with a utility function to dump the bitmap to disk. I found this extremely helpful when working on some recent Windows development.
Created attachment 90149 [details] Patch
Attachment 90149 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/win/DIBPixelData.cpp:32: One space before end of line comments [whitespace/comments] [5] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 90150 [details] Patch
Comment on attachment 90150 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=90150&action=review > Source/WebCore/platform/graphics/win/DIBPixelData.cpp:32 > +const WORD s_bitmapType = 0x4d42; > +const WORD s_bitmapPixelsPerMeter = 2834; // 72 dpi No need for the s_ prefixes here. But you should mark them "static". > Source/WebCore/platform/graphics/win/DIBPixelData.h:52 > + void writeToFile(LPCWSTR); Maybe this function should be wrapped in #ifndef NDEBUG?
Landed in http://trac.webkit.org/changeset/84261.