[Win] Add WebKitQuartzCoreAdditions library.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Nov 2017 17:11:24 +0000 (17:11 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Nov 2017 17:11:24 +0000 (17:11 +0000)
commitab09dd6a9395938739c2704359b566cb5bad2715
tree2da99c8a06cf2a3052974edae48e872d4a46f25d
parent1745fd328533f4984fc7cdd83bd35052299adddd
[Win] Add WebKitQuartzCoreAdditions library.
https://bugs.webkit.org/show_bug.cgi?id=179331

Reviewed by Alex Christensen.

Source/WebKitLegacy:

This library should be added to the OpenSource repository.

* CMakeLists.txt:

Source/WebKitLegacy/win:

* WebKitQuartzCoreAdditions: Added.
* WebKitQuartzCoreAdditions/API: Added.
* WebKitQuartzCoreAdditions/API/WKCACFImage.cpp: Added.
(toImage):
(WKCACFImageGetWidth):
(WKCACFImageGetHeight):
(WKCACFImageCopyFileMapping):
(WKCACFImageCreateWithImage):
(WKCACFImageFinalize):
(WKCACFImageCopyFormattingDescription):
(WKCACFImageCopyDebugDescription):
(WKCACFImageGetTypeID):
* WebKitQuartzCoreAdditions/API/WKCACFImage.h: Added.
* WebKitQuartzCoreAdditions/API/WKCACFImageInternal.h: Added.
* WebKitQuartzCoreAdditions/API/WKCACFView.cpp: Added.
(toView):
(toImpl):
(WKCACFViewCreate):
(WKCACFViewSetLayer):
(WKCACFViewUpdate):
(WKCACFViewFlushContext):
(WKCACFViewInvalidateRects):
(WKCACFViewCanDraw):
(WKCACFViewDraw):
(WKCACFViewCopyDrawnImage):
(WKCACFViewDrawIntoDC):
(contextDidChangeCallback):
(WKCACFViewSetContextDidChangeCallback):
(WKCACFViewGetLastCommitTime):
(WKCACFViewSetContextUserData):
(WKCACFViewGetContext):
(WKCACFViewFinalize):
(WKCACFViewCopyFormattingDescription):
(WKCACFViewCopyDebugDescription):
(WKCACFViewGetTypeID):
(WKCACFViewSetShouldInvertColors):
(WKCACFViewGetD3DDevice9):
* WebKitQuartzCoreAdditions/API/WKCACFView.h: Added.
* WebKitQuartzCoreAdditions/API/WKCACFViewPrivate.h: Added.
* WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditions.cpp: Added.
(WKQCA::dllInstance):
(DllMain):
(WKCACFShutDown):
* WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditionsBase.h: Added.
* WebKitQuartzCoreAdditions/CAD3DRenderer.cpp: Added.
(WKQCA::D3DPostProcessingContext::D3DPostProcessingContext):
(WKQCA::d3d):
(WKQCA::initialPresentationParameters):
(WKQCA::CAD3DRenderer::shared):
(WKQCA::CAD3DRenderer::CAD3DRenderer):
(WKQCA::CAD3DRenderer::swapChain):
(WKQCA::CAD3DRenderer::createD3DPostProcessingContext):
(WKQCA::hardwareCapabilitiesIndicateCoreAnimationSupport):
(WKQCA::CAD3DRenderer::initialize):
(WKQCA::D3DMatrixOrthoOffCenterRH):
(WKQCA::prepareDevice):
(WKQCA::updateBounds):
(WKQCA::CAD3DRenderer::renderAndPresent):
(WKQCA::CAD3DRenderer::renderToImage):
(WKQCA::CAD3DRenderer::setDeviceIsLost):
(WKQCA::CAD3DRenderer::renderInternal):
(WKQCA::CAD3DRenderer::postProcess):
(WKQCA::CAD3DRenderer::resetD3DDevice):
(WKQCA::CAD3DRenderer::createShaderIfNeeded):
(WKQCA::CAD3DRenderer::release):
* WebKitQuartzCoreAdditions/CAD3DRenderer.h: Added.
(WKQCA::D3DPostProcessingContext::sceneTexture const):
(WKQCA::D3DPostProcessingContext::overlayQuad const):
(WKQCA::CAD3DRenderer::d3dDevice9 const):
* WebKitQuartzCoreAdditions/CAView.cpp: Added.
(WKQCA::CAView::Handle::create):
(WKQCA::CAView::Handle::~Handle):
(WKQCA::CAView::Handle::mutex):
(WKQCA::CAView::Handle::view const):
(WKQCA::CAView::Handle::clear):
(WKQCA::CAView::Handle::Handle):
(WKQCA::globalStateMutex):
(WKQCA::registerMessageWindowClass):
(WKQCA::createMessageWindow):
(WKQCA::CAView::releaseAllD3DResources):
(WKQCA::CAView::CAView):
(WKQCA::CAView::~CAView):
(WKQCA::CAView::create):
(WKQCA::CAView::setContextDidChangeCallback):
(WKQCA::CAView::setLayer):
(WKQCA::CAView::update):
(WKQCA::CAView::invalidateRects):
(WKQCA::CAView::drawToWindow):
(WKQCA::CAView::drawToWindowInternal):
(WKQCA::CAView::drawToImage):
(WKQCA::CAView::willDraw):
(WKQCA::CAView::didDraw):
(WKQCA::CAView::drawIntoDC):
(WKQCA::CAView::setShouldInvertColors):
(WKQCA::CAView::scheduleNextDraw):
(WKQCA::CAView::displayLinkReachedCAMediaTime):
(WKQCA::CAView::contextDidChangeCallback):
(WKQCA::CAView::contextDidChange):
(WKQCA::CAView::updateSoon):
(WKQCA::CAView::updateViewsNow):
(WKQCA::CAView::d3dDevice9):
* WebKitQuartzCoreAdditions/CAView.h: Added.
(WKQCA::CAView::context const):
(WKQCA::CAView::canDraw const):
(WKQCA::CAView::ContextDidChangeCallback::ContextDidChangeCallback):
* WebKitQuartzCoreAdditions/CMakeLists.txt: Added.
* WebKitQuartzCoreAdditions/CVDisplayLink.cpp: Added.
(WKQCA::CVDisplayLink::CVDisplayLink):
(WKQCA::CVDisplayLink::~CVDisplayLink):
(WKQCA::CVDisplayLink::create):
(WKQCA::CVDisplayLink::start):
(WKQCA::CVDisplayLink::stop):
(WKQCA::CVDisplayLink::setPaused):
(WKQCA::CVDisplayLink::runIOThread):
* WebKitQuartzCoreAdditions/CVDisplayLink.h: Added.
* WebKitQuartzCoreAdditions/CVDisplayLinkClient.h: Added.
(WKQCA::CVDisplayLinkClient::~CVDisplayLinkClient):
* WebKitQuartzCoreAdditions/Image.cpp: Added.
(WKQCA::numBytesForSize):
(WKQCA::Image::create):
(WKQCA::Image::Image):
(WKQCA::Image::~Image):
(WKQCA::bitmapInfo):
(WKQCA::Image::createDIB const):
(WKQCA::Image::copyFileMapping):
* WebKitQuartzCoreAdditions/Image.h: Added.
(WKQCA::Image::size const):
* WebKitQuartzCoreAdditions/ImageConversion.cpp: Added.
(WKQCA::getBackBufferRectAsRenderTarget):
(WKQCA::getSystemMemoryCopy):
(WKQCA::copyRectToBitmap):
(WKQCA::getImageCopy):
(WKQCA::getBackBufferRectAsImage):
* WebKitQuartzCoreAdditions/ImageConversion.h: Added.
* WebKitQuartzCoreAdditions/InvertColorPS.hlsl: Added.
* WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsInternal.h: Added.
* WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.cpp: Added.
* WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
27 files changed:
Source/WebKitLegacy/CMakeLists.txt
Source/WebKitLegacy/ChangeLog
Source/WebKitLegacy/win/ChangeLog
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WKCACFImage.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WKCACFImage.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WKCACFImageInternal.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WKCACFView.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WKCACFView.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WKCACFViewPrivate.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditions.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditionsBase.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CAD3DRenderer.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CAD3DRenderer.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CAView.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CAView.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CMakeLists.txt [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CVDisplayLink.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CVDisplayLink.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/CVDisplayLinkClient.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/Image.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/Image.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/ImageConversion.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/ImageConversion.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/InvertColorPS.hlsl [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsInternal.h [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.cpp [new file with mode: 0644]
Source/WebKitLegacy/win/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.h [new file with mode: 0644]