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

Unified Diff: media/blink/video_frame_compositor.cc

Issue 2254503002: Change VideoFrameCompositor events to be async. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chagne to async events Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/video_frame_compositor.cc
diff --git a/media/blink/video_frame_compositor.cc b/media/blink/video_frame_compositor.cc
index fb59ba4b0ca924d6a5e7a588de35497ae95f3339..544f7098701d481c2358c2493d2f59aae52d5256 100644
--- a/media/blink/video_frame_compositor.cc
+++ b/media/blink/video_frame_compositor.cc
@@ -105,7 +105,8 @@ bool VideoFrameCompositor::HasCurrentFrame() {
}
void VideoFrameCompositor::Start(RenderCallback* callback) {
- TRACE_EVENT0("media,rail", "VideoFrameCompositor::Start");
+ TRACE_EVENT_ASYNC_BEGIN0("media,rail", "VideoPlayback",
+ static_cast<const void*>(this));
// Called from the media thread, so acquire the callback under lock before
// returning in case a Stop() call comes in before the PostTask is processed.
@@ -118,7 +119,8 @@ void VideoFrameCompositor::Start(RenderCallback* callback) {
}
void VideoFrameCompositor::Stop() {
- TRACE_EVENT0("media,rail", "VideoFrameCompositor::Stop");
+ TRACE_EVENT_ASYNC_END0("media,rail", "VideoPlayback",
+ static_cast<const void*>(this));
// Called from the media thread, so release the callback under lock before
// returning to avoid a pending UpdateCurrentFrame() call occurring before
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698