[chromium] Move ownership of compositor VideoLayer to WebMediaPlayer
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: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@146843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: 915151238f5114ca66789ea6b701ea0bbf933dcb
  1. android/
  2. default/
  3. linux/
  4. mac/
  5. win/
  6. Platform.h
  7. WebAnimation.h
  8. WebAnimationCurve.h
  9. WebAnimationDelegate.h
  10. WebAudioBus.h
  11. WebAudioDestinationConsumer.h
  12. WebAudioDevice.h
  13. WebBlobData.h
  14. WebBlobRegistry.h
  15. WebCanvas.h
  16. WebClipboard.h
  17. WebColor.h
  18. WebCommon.h
  19. WebCompositorOutputSurface.h
  20. WebCompositorSupport.h
  21. WebContentLayer.h
  22. WebContentLayerClient.h
  23. WebCookie.h
  24. WebCookieJar.h
  25. WebCString.h
  26. WebData.h
  27. WebDiscardableMemory.h
  28. WebDragData.h
  29. WebExternalTextureLayer.h
  30. WebExternalTextureLayerClient.h
  31. WebFileError.h
  32. WebFileInfo.h
  33. WebFileSystem.h
  34. WebFileSystemCallbacks.h
  35. WebFileSystemEntry.h
  36. WebFileSystemType.h
  37. WebFileUtilities.h
  38. WebFilterOperation.h
  39. WebFilterOperations.h
  40. WebFlingAnimator.h
  41. WebFloatAnimationCurve.h
  42. WebFloatKeyframe.h
  43. WebFloatPoint.h
  44. WebFloatQuad.h
  45. WebFloatRect.h
  46. WebFloatSize.h
  47. WebGamepad.h
  48. WebGamepads.h
  49. WebGestureCurve.h
  50. WebGestureCurveTarget.h
  51. WebGraphicsContext3D.h
  52. WebGraphicsMemoryAllocation.h
  53. WebGraphicsMemoryStats.h
  54. WebHTTPBody.h
  55. WebHTTPHeaderVisitor.h
  56. WebHTTPLoadInfo.h
  57. WebHyphenator.h
  58. WebImage.h
  59. WebImageLayer.h
  60. WebInputHandler.h
  61. WebInputHandlerClient.h
  62. WebLayer.h
  63. WebLayerScrollClient.h
  64. WebLayerTreeView.h
  65. WebLocalizedString.h
  66. WebMediaConstraints.h
  67. WebMediaStream.h
  68. WebMediaStreamCenter.h
  69. WebMediaStreamCenterClient.h
  70. WebMediaStreamSource.h
  71. WebMediaStreamSourcesRequest.h
  72. WebMediaStreamTrack.h
  73. WebMessagePortChannel.h
  74. WebMessagePortChannelClient.h
  75. WebMimeRegistry.h
  76. WebNonCopyable.h
  77. WebPluginListBuilder.h
  78. WebPoint.h
  79. WebPrerender.h
  80. WebPrerenderingSupport.h
  81. WebPrivateOwnPtr.h
  82. WebPrivatePtr.h
  83. WebRect.h
  84. WebReferrerPolicy.h
  85. WebRenderingStats.h
  86. WebRTCConfiguration.h
  87. WebRTCDataChannelHandler.h
  88. WebRTCDataChannelHandlerClient.h
  89. WebRTCDTMFSenderHandler.h
  90. WebRTCDTMFSenderHandlerClient.h
  91. WebRTCICECandidate.h
  92. WebRTCPeerConnectionHandler.h
  93. WebRTCPeerConnectionHandlerClient.h
  94. WebRTCSessionDescription.h
  95. WebRTCSessionDescriptionRequest.h
  96. WebRTCStatsRequest.h
  97. WebRTCStatsResponse.h
  98. WebRTCVoidRequest.h
  99. WebScreenInfo.h
  100. WebScrollbar.h
  101. WebScrollbarLayer.h
  102. WebScrollbarThemeGeometry.h
  103. WebScrollbarThemePainter.h
  104. WebSize.h
  105. WebSocketStreamError.h
  106. WebSocketStreamHandle.h
  107. WebSocketStreamHandleClient.h
  108. WebSolidColorLayer.h
  109. WebSpeechSynthesisUtterance.h
  110. WebSpeechSynthesisVoice.h
  111. WebSpeechSynthesizer.h
  112. WebSpeechSynthesizerClient.h
  113. WebStorageArea.h
  114. WebStorageNamespace.h
  115. WebString.h
  116. WebThread.h
  117. WebThreadSafeData.h
  118. WebTransformAnimationCurve.h
  119. WebTransformKeyframe.h
  120. WebTransformOperations.h
  121. WebUnitTestSupport.h
  122. WebURL.h
  123. WebURLError.h
  124. WebURLLoader.h
  125. WebURLLoaderClient.h
  126. WebURLLoadTiming.h
  127. WebURLRequest.h
  128. WebURLResponse.h
  129. WebVector.h
  130. WebVideoFrame.h
  131. WebVideoFrameProvider.h
  132. WebVideoLayer.h
  133. WebWorkerRunLoop.h