2010-12-02 Chris Marrin <cmarrin@apple.com>
authorcmarrin@apple.com <cmarrin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Dec 2010 00:34:37 +0000 (00:34 +0000)
committercmarrin@apple.com <cmarrin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Dec 2010 00:34:37 +0000 (00:34 +0000)
commit2eeb90af8a44bc60c77f63668fb777f13fba9dc4
treeaba643d3e12cc305b7a2f38d95c057ccdd7387c0
parent9c132eb2943555c0292acb8f01a653f41ff9cf52
2010-12-02  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
        https://bugs.webkit.org/show_bug.cgi?id=49388

        Replaced GraphicsLayerMac with GraphicsLayerCA. GraphicsLayerCA is essentially
        identical to GraphicsLayerMac, but replaces all the CoreAnimation specific calls
        with calls to PlatformCALayer and PlatformCAAnimation. This makes GraphicsLayerCA
        platform neutral as long as implementations of those two classes are available.
        Added implementations in PlatformCALayerMac and PlatformCAAnimationMac. Also got
        rid of GraphicsLayer::nativeLayer() and replaced it with GraphicsLayer::platformLayer()
        to avoid confusion since both names were used to refer to the same thing.

        This patch is only for Mac. Windows implementation has not changed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21 files changed:
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/platform/graphics/GraphicsLayer.h
WebCore/platform/graphics/ca/GraphicsLayerCA.cpp [moved from WebCore/platform/graphics/mac/GraphicsLayerMac.mm with 50% similarity]
WebCore/platform/graphics/ca/GraphicsLayerCA.h [moved from WebCore/platform/graphics/mac/GraphicsLayerMac.h with 78% similarity]
WebCore/platform/graphics/ca/PlatformCAAnimation.h [new file with mode: 0644]
WebCore/platform/graphics/ca/PlatformCALayer.h [new file with mode: 0644]
WebCore/platform/graphics/ca/mac/PlatformCAAnimationMac.mm [new file with mode: 0644]
WebCore/platform/graphics/ca/mac/PlatformCALayerMac.mm [new file with mode: 0644]
WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp
WebCore/platform/graphics/chromium/GraphicsLayerChromium.h
WebCore/platform/graphics/mac/WebLayer.h
WebCore/platform/graphics/mac/WebLayer.mm
WebCore/platform/graphics/mac/WebTiledLayer.h
WebCore/platform/graphics/mac/WebTiledLayer.mm
WebCore/platform/graphics/qt/GraphicsLayerQt.cpp
WebCore/platform/graphics/qt/GraphicsLayerQt.h
WebCore/platform/graphics/win/GraphicsLayerCACF.cpp
WebCore/platform/graphics/win/GraphicsLayerCACF.h
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebChromeClient.mm