[Win][Direct2D] Add Direct2D CMake rules
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Oct 2016 18:01:32 +0000 (18:01 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Oct 2016 18:01:32 +0000 (18:01 +0000)
commit6f6bf7a7766b41b97faad22ab918264f4371c5f1
treeb754a63f3262c08ca668dccd641f45865a03901a
parentb756d92bf7575b729989e21dabeb05178f948c29
[Win][Direct2D] Add Direct2D CMake rules
https://bugs.webkit.org/show_bug.cgi?id=162925

Reviewed by Brent Fulgham.

.:

* Source/cmake/OptionsAppleWin.cmake: Add a new 'USE_DIRECT2D' option
flag for the build. Currently this is commented out and is unused.

Source/WebCore:

Modify PlatformAppleWin.cmake to conditionally build the CoreGraphics
and CoreAnimation implementation, or the Direct2D files, depending
on whether the USE_DIRECT2D macro is set in the CMake build options.
By default it builds the normal CA/CG way.

Add a stub GraphicsLayer implementation for Direct2D.

No new tests because there is no change in our active ports.

* PlatformAppleWin.cmake: Conditionalize the build for CA/CG or
Direct2D.
* config.h: Make sure CA is turned of for Direct2D builds.
* page/win/FrameWinDirect2D.cpp: Add missing include file.
* platform/graphics/win/GraphicsLayerDirect2D.cpp: Added.
* platform/graphics/win/GraphicsLayerDirect2D.h: Added.

Source/WTF:

* wtf/Platform.h: Don't USE(CA) or USE(CG) if building
with Direct2D.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@206871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/WTF/ChangeLog
Source/WTF/wtf/Platform.h
Source/WebCore/ChangeLog
Source/WebCore/PlatformAppleWin.cmake
Source/WebCore/config.h
Source/WebCore/page/win/FrameWinDirect2D.cpp
Source/WebCore/platform/graphics/win/GraphicsLayerDirect2D.cpp [new file with mode: 0644]
Source/WebCore/platform/graphics/win/GraphicsLayerDirect2D.h [new file with mode: 0644]
Source/cmake/OptionsAppleWin.cmake