| Index: Source/web/WebMediaPlayerClientImpl.cpp
|
| diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
|
| index 09635ef423ac7da4eb5cd1becf68b75abdb9aa93..7d76e7fba0e93130d85a9ff5609620757315d3d9 100644
|
| --- a/Source/web/WebMediaPlayerClientImpl.cpp
|
| +++ b/Source/web/WebMediaPlayerClientImpl.cpp
|
| @@ -234,20 +234,6 @@ bool WebMediaPlayerClientImpl::canShowFullscreenOverlay() const
|
| return m_webMediaPlayer && m_webMediaPlayer->canEnterFullscreen();
|
| }
|
|
|
| -IntSize WebMediaPlayerClientImpl::naturalSize() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->naturalSize();
|
| - return IntSize();
|
| -}
|
| -
|
| -bool WebMediaPlayerClientImpl::hasVideo() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->hasVideo();
|
| - return false;
|
| -}
|
| -
|
| bool WebMediaPlayerClientImpl::hasAudio() const
|
| {
|
| if (m_webMediaPlayer)
|
| @@ -391,13 +377,6 @@ bool WebMediaPlayerClientImpl::hasSingleSecurityOrigin() const
|
| return false;
|
| }
|
|
|
| -bool WebMediaPlayerClientImpl::didPassCORSAccessCheck() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->didPassCORSAccessCheck();
|
| - return false;
|
| -}
|
| -
|
| double WebMediaPlayerClientImpl::mediaTimeForTimeValue(double timeValue) const
|
| {
|
| if (m_webMediaPlayer)
|
| @@ -405,27 +384,6 @@ double WebMediaPlayerClientImpl::mediaTimeForTimeValue(double timeValue) const
|
| return timeValue;
|
| }
|
|
|
| -unsigned WebMediaPlayerClientImpl::decodedFrameCount() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->decodedFrameCount();
|
| - return 0;
|
| -}
|
| -
|
| -unsigned WebMediaPlayerClientImpl::droppedFrameCount() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->droppedFrameCount();
|
| - return 0;
|
| -}
|
| -
|
| -unsigned WebMediaPlayerClientImpl::corruptedFrameCount() const
|
| -{
|
| - if (m_webMediaPlayer)
|
| - return m_webMediaPlayer->corruptedFrameCount();
|
| - return 0;
|
| -}
|
| -
|
| unsigned WebMediaPlayerClientImpl::audioDecodedByteCount() const
|
| {
|
| if (m_webMediaPlayer)
|
| @@ -469,7 +427,7 @@ void WebMediaPlayerClientImpl::paintOnAndroid(WebCore::GraphicsContext* context,
|
| // which is not supported by Skia yet. The bitmap's size needs to be the same as the video and use naturalSize() here.
|
| // Check if we could reuse existing texture based bitmap.
|
| // Otherwise, release existing texture based bitmap and allocate a new one based on video size.
|
| - if (!ensureTextureBackedSkBitmap(provider->grContext(), m_bitmap, naturalSize(), kTopLeft_GrSurfaceOrigin, kSkia8888_GrPixelConfig))
|
| + if (!ensureTextureBackedSkBitmap(provider->grContext(), m_bitmap, m_webMediaPlayer->naturalSize(), kTopLeft_GrSurfaceOrigin, kSkia8888_GrPixelConfig))
|
| return;
|
|
|
| // Copy video texture to bitmap texture.
|
|
|