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

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

Issue 1930003002: Bug Fix: Rendering stuck due to thread issue of WebMediaPlayerMSCompositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Function Rename Created 4 years, 8 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 1122903e467b9b51b0503035b9b103fff6798a07..d2b0c1a0ecb752464a72631e9764cab323414ec3 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -328,7 +328,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()) {
@@ -452,7 +453,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