Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3237)

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 291873002: Eliminate MediaPlayer & MediaPlayerClient abstractions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed one more unused method Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« Source/platform/graphics/media/MediaPlayer.h ('K') | « Source/web/WebMediaPlayerClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698