-
eric.carlson@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=90015 <rdar://problem/10770317> Reviewed by Anders Carlsson. Source/WebCore: * html/HTMLMediaElement.cpp: (WebCore): (WebCore::HTMLMediaElement::mediaPlayerGraphicsDeviceAdapter): New, return the client's graphics device adapter. * html/HTMLMediaElement.h: * page/ChromeClient.h: (WebCore::ChromeClient::graphicsDeviceAdapter): New. * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::graphicsDeviceAdapter): New, ask the media element for the graphics device adapter. * platform/graphics/MediaPlayer.h: * platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h: Soft-link AVCFPlayerSetDirect3DDevice and AVCFPlayerEnableHardwareAcceleratedVideoDecoderKey. * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: (WebCore::MediaPlayerPrivateAVFoundationCF::createAVAssetForURL): Pass the current d3d9 device interface to the AVFWrapper. (WebCore::AVFWrapper::createAssetForURL): If the d...
1e9da37a