https://bugs.webkit.org/show_bug.cgi?id=76332
Patch by Ami Fischman <fischman@chromium.org> on 2012-01-20
Reviewed by James Robinson.
Source/WebCore:
* platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
(WebCore::CCVideoLayerImpl::draw):
Source/WebKit/chromium:
* src/WebMediaPlayerClientImpl.cpp:
(WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
(WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105559
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-20 Ami Fischman <fischman@chromium.org>
+
+ Small cleanup of {get,put}CurrentFrame for WebMediaPlayerClientImpl/CCVideoLayerImpl.
+ https://bugs.webkit.org/show_bug.cgi?id=76332
+
+ Reviewed by James Robinson.
+
+ * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
+ (WebCore::CCVideoLayerImpl::draw):
+
2012-01-20 Brady Eidson <beidson@apple.com>
<rdar://problem/9328684> and https://bugs.webkit.org/show_bug.cgi?id=62764
return;
GC3Denum format = convertVFCFormatToGC3DFormat(frame->format());
- if (format == GraphicsContext3D::INVALID_VALUE)
+ if (format == GraphicsContext3D::INVALID_VALUE) {
+ m_provider->putCurrentFrame(frame);
return;
+ }
- if (!copyFrameToTextures(frame, format, layerRenderer))
+ if (!copyFrameToTextures(frame, format, layerRenderer)) {
+ m_provider->putCurrentFrame(frame);
return;
+ }
switch (format) {
case GraphicsContext3D::LUMINANCE:
+2012-01-20 Ami Fischman <fischman@chromium.org>
+
+ Small cleanup of {get,put}CurrentFrame for WebMediaPlayerClientImpl/CCVideoLayerImpl.
+ https://bugs.webkit.org/show_bug.cgi?id=76332
+
+ Reviewed by James Robinson.
+
+ * src/WebMediaPlayerClientImpl.cpp:
+ (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
+ (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
+
2012-01-20 Ryosuke Niwa <rniwa@webkit.org>
Roll Chromium DEPS from 118291 to 118493.
{
MutexLocker locker(m_compositingMutex);
ASSERT(!m_currentVideoFrame);
- if (m_webMediaPlayer && !m_currentVideoFrame) {
+ if (m_webMediaPlayer) {
WebVideoFrame* webkitVideoFrame = m_webMediaPlayer->getCurrentFrame();
if (webkitVideoFrame)
m_currentVideoFrame = adoptPtr(new VideoFrameChromiumImpl(webkitVideoFrame));
void WebMediaPlayerClientImpl::putCurrentFrame(VideoFrameChromium* videoFrame)
{
MutexLocker locker(m_compositingMutex);
- if (videoFrame && videoFrame == m_currentVideoFrame) {
- if (m_webMediaPlayer) {
- m_webMediaPlayer->putCurrentFrame(
- VideoFrameChromiumImpl::toWebVideoFrame(videoFrame));
- }
- ASSERT(videoFrame == m_currentVideoFrame);
- m_currentVideoFrame.clear();
+ ASSERT(videoFrame == m_currentVideoFrame);
+ if (!videoFrame)
+ return;
+ if (m_webMediaPlayer) {
+ m_webMediaPlayer->putCurrentFrame(
+ VideoFrameChromiumImpl::toWebVideoFrame(videoFrame));
}
+ m_currentVideoFrame.clear();
}
#endif