diff options
Diffstat (limited to 'media/blink/webmediaplayer_impl.cc')
-rw-r--r-- | media/blink/webmediaplayer_impl.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc index f48f982..da8feec 100644 --- a/media/blink/webmediaplayer_impl.cc +++ b/media/blink/webmediaplayer_impl.cc @@ -510,16 +510,14 @@ void WebMediaPlayerImpl::paint(blink::WebCanvas* canvas, // - We haven't reached HAVE_CURRENT_DATA and need to paint black // - We're painting to a canvas // See http://crbug.com/341225 http://crbug.com/342621 for details. - scoped_refptr<VideoFrame> video_frame = - GetCurrentFrameFromCompositor(); + scoped_refptr<VideoFrame> video_frame = GetCurrentFrameFromCompositor(); gfx::Rect gfx_rect(rect); Context3D context_3d; if (video_frame.get() && - video_frame->format() == VideoFrame::NATIVE_TEXTURE) { - if (!context_3d_cb_.is_null()) { + video_frame->storage_type() == VideoFrame::STORAGE_TEXTURE) { + if (!context_3d_cb_.is_null()) context_3d = context_3d_cb_.Run(); - } // GPU Process crashed. if (!context_3d.gl) return; @@ -594,11 +592,10 @@ bool WebMediaPlayerImpl::copyVideoTextureToPlatformTexture( bool flip_y) { TRACE_EVENT0("media", "WebMediaPlayerImpl:copyVideoTextureToPlatformTexture"); - scoped_refptr<VideoFrame> video_frame = - GetCurrentFrameFromCompositor(); + scoped_refptr<VideoFrame> video_frame = GetCurrentFrameFromCompositor(); if (!video_frame.get() || - video_frame->format() != VideoFrame::NATIVE_TEXTURE) { + video_frame->storage_type() != VideoFrame::STORAGE_TEXTURE) { return false; } |