[Win][Direct2D] Support building DumpRenderTree for Direct2D
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Oct 2018 02:29:21 +0000 (02:29 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Oct 2018 02:29:21 +0000 (02:29 +0000)
commit33f43355a2dd8bfe64fec3a4b46a2531f05bad39
tree3da06f676b777837c5a834d120be92c4574c1648
parent28fa5c457d6095da79333acf186c6106fd875671
[Win][Direct2D] Support building DumpRenderTree for Direct2D
https://bugs.webkit.org/show_bug.cgi?id=191093
<rdar://problem/45685706>

Reviewed by Alex Christensen.

* DumpRenderTree/PixelDumpSupport.cpp: Update for Direct2D use.
* DumpRenderTree/PlatformWin.cmake: Add support for Direct2D build.
* DumpRenderTree/win/PixelDumpSupportDirect2D.cpp: Added.
(pixelDumpSystemFactory): Added.
(printPNG): Create stub.
(computeMD5HashStringForBitmapContext): Ditto.
(dumpBitmap): Ditto.
* DumpRenderTree/win/PixelDumpSupportDirect2D.h: Added.
(BitmapContext::createByAdoptingBitmapAndContext):
(BitmapContext::~BitmapContext):
(BitmapContext::platformContext const):
(BitmapContext::BitmapContext):
* DumpRenderTree/win/PixelDumpSupportWin.cpp:
(createBitmapContextFromWebView): Update to support Direct2D.
* MiniBrowser/win/MiniBrowserReplace.h: Drive-by fix: The old WebKit
logo is no longer available at this location. Switch to the new logo.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/DumpRenderTree/PixelDumpSupport.cpp
Tools/DumpRenderTree/PlatformWin.cmake
Tools/DumpRenderTree/win/PixelDumpSupportDirect2D.cpp [new file with mode: 0644]
Tools/DumpRenderTree/win/PixelDumpSupportDirect2D.h [new file with mode: 0644]
Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp
Tools/MiniBrowser/win/MiniBrowserReplace.h