-
danakj@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=112971 Reviewed by James Robinson. Source/Platform: Defines REMOVE_WEBVIDEOFRAME in related headers to enable this code path in chromium. * chromium/public/WebVideoFrame.h: * chromium/public/WebVideoFrameProvider.h: Source/WebKit/chromium: This moves ownership of the compositor's video layer over to the implementation of WebMediaPlayer, as well as all interaction between the media player system and the compositor layer or its interfaces such as cc::VideoFrameProvider. Now, the WebMediaPlayer implementation calls setWebLayer() to provide the WebLayer* to the WebMediaPlayerClientImpl so that it can be inserted into the GraphicsLayer tree appropriately. Defines REMOVE_WEBVIDEOFRAME in related headers to enable this code path in chromium. Once chromium removes its use of WebVideoFrame and its related classes, we can remove them from WebKit entirely. * WebKit.gypi: * public/WebMediaPlayer.h: (WebKit): * public/WebMediaPlayerClient.h: * public/WebStreamTextureClient.h: * src/WebMediaPlayerClientImpl.cpp: (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl): (WebKit::WebMediaPlayerClientImpl::readyStateChanged): (WebKit::WebMediaPlayerClientImpl::repaint): (WebKit::WebMediaPlayerClientImpl::setOpaque): (WebKit::WebMediaPlayerClientImpl::setWebLayer): (WebKit::WebMediaPlayerClientImpl::loadRequested): (WebKit::WebMediaPlayerClientImpl::platformLayer): (WebKit::WebMediaPlayerClientImpl::paint): (WebKit::WebMediaPlayerClientImpl::needsWebLayer): (WebKit::WebMediaPlayerClientImpl::supportsAcceleratedRendering): (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse): (WebKit::WebMediaPlayerClientImpl::create): (WebKit::WebMediaPlayerClientImpl::supportsType): * src/WebMediaPlayerClientImpl.h: (WebKit): (WebMediaPlayerClientImpl): * tests/WebMediaPlayerClientImplTest.cpp: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
53190e76