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

Unified Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 1964253002: Bug Fix: Rendering stuck due to thread issue of WebMediaPlayerMSCompositor (M51) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms_compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index f362c5146189814bbe8dc70e53e0b7e8dcfd0aba..5beb098bb748c6476a5c3180412473db8d9d3684 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -325,7 +325,8 @@ void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
DVLOG(3) << __FUNCTION__;
DCHECK(thread_checker_.CalledOnValidThread());
- const scoped_refptr<media::VideoFrame> frame = compositor_->GetCurrentFrame();
+ const scoped_refptr<media::VideoFrame> frame =
+ compositor_->GetCurrentFrameWithoutUpdatingStatistics();
media::Context3D context_3d;
if (frame && frame->HasTextures()) {
@@ -449,7 +450,8 @@ bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
TRACE_EVENT0("media", "WebMediaPlayerMS:copyVideoTextureToPlatformTexture");
DCHECK(thread_checker_.CalledOnValidThread());
- scoped_refptr<media::VideoFrame> video_frame = compositor_->GetCurrentFrame();
+ scoped_refptr<media::VideoFrame> video_frame =
+ compositor_->GetCurrentFrameWithoutUpdatingStatistics();
if (!video_frame.get() || !video_frame->HasTextures() ||
media::VideoFrame::NumPlanes(video_frame->format()) != 1) {
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698