Bug 186927

Summary: [WinCairo] ImageDiff should use DLLLauncher
Product: WebKit Reporter: Ross Kirsling <ross.kirsling>
Component: New BugsAssignee: Ross Kirsling <ross.kirsling>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, commit-queue, don.olmstead, pvollan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Ross Kirsling 2018-06-22 09:50:07 PDT
[WinCairo] ImageDiff should use DLLLauncher
Comment 1 Ross Kirsling 2018-06-22 09:52:47 PDT
Created attachment 343334 [details]
Patch
Comment 2 Per Arne Vollan 2018-06-22 09:57:40 PDT
Could you also make this change for AppleWin?
Comment 3 Ross Kirsling 2018-06-22 10:19:56 PDT
(In reply to Per Arne Vollan from comment #2)
> Could you also make this change for AppleWin?

Absolutely. Don and I thought perhaps you guys wouldn't want the extra overhead if you didn't need it. :)
Comment 4 Per Arne Vollan 2018-06-22 10:29:32 PDT
(In reply to Ross Kirsling from comment #3)
> (In reply to Per Arne Vollan from comment #2)
> > Could you also make this change for AppleWin?
> 
> Absolutely. Don and I thought perhaps you guys wouldn't want the extra
> overhead if you didn't need it. :)

Great. I think also AppleWin needs this. I've had issues where ImageDiff did not start because it couldn't find dlls.
Comment 5 Ross Kirsling 2018-06-22 10:34:19 PDT
Created attachment 343341 [details]
Patch
Comment 6 Per Arne Vollan 2018-06-22 10:42:53 PDT
Comment on attachment 343341 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=343341&action=review

Looks good. R=me. Please make sure EWS is green before landing.

> Tools/ImageDiff/PlatformWin.cmake:15
> +set(IMAGE_DIFF_SOURCES ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp)
> +set(IMAGE_DIFF_LIBRARIES shlwapi)

Should IMAGE_DIFF_SOURCES and IMAGE_DIFF_LIBRARIES be set before being referenced, or isn't that necessary?
Comment 7 Ross Kirsling 2018-06-22 10:59:23 PDT
(In reply to Per Arne Vollan from comment #6)
> > Tools/ImageDiff/PlatformWin.cmake:15
> > +set(IMAGE_DIFF_SOURCES ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp)
> > +set(IMAGE_DIFF_LIBRARIES shlwapi)
> 
> Should IMAGE_DIFF_SOURCES and IMAGE_DIFF_LIBRARIES be set before being
> referenced, or isn't that necessary?

This is actually overwriting them -- the "real" sources/libs are redirected to ImageDiffLib and then ImageDiff becomes just the DLLLauncher wrapper. (This is the same as what DRT and TestWebKitAPI do, and appears to be necessitated by having two main() functions.)
Comment 8 Ross Kirsling 2018-06-22 14:46:05 PDT
Note: AppleWin EWS has been failing since r233066 and force clean is failing.
Going to land since the log suggests that ImageDiff.exe is being built successfully.
Comment 9 WebKit Commit Bot 2018-06-22 15:13:30 PDT
Comment on attachment 343341 [details]
Patch

Clearing flags on attachment: 343341

Committed r233102: <https://trac.webkit.org/changeset/233102>
Comment 10 WebKit Commit Bot 2018-06-22 15:13:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2018-06-22 15:14:20 PDT
<rdar://problem/41383999>