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

Side by Side Diff: media/base/renderer_client.h

Issue 2552493002: [Media] Record time it takes to start rendering audio and video (Closed)
Patch Set: Use RestartPlaybackStream and OnFirstFrameRender Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_RENDERER_CLIENT_H_ 5 #ifndef MEDIA_BASE_RENDERER_CLIENT_H_
6 #define MEDIA_BASE_RENDERER_CLIENT_H_ 6 #define MEDIA_BASE_RENDERER_CLIENT_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "media/base/pipeline_status.h" 9 #include "media/base/pipeline_status.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 23 matching lines...) Expand all
34 // Only used if media stream contains video track. 34 // Only used if media stream contains video track.
35 virtual void OnVideoNaturalSizeChange(const gfx::Size& size) = 0; 35 virtual void OnVideoNaturalSizeChange(const gfx::Size& size) = 0;
36 36
37 // Executed for the first video frame and whenever opacity changes. 37 // Executed for the first video frame and whenever opacity changes.
38 // Only used if media stream contains video track. 38 // Only used if media stream contains video track.
39 virtual void OnVideoOpacityChange(bool opaque) = 0; 39 virtual void OnVideoOpacityChange(bool opaque) = 0;
40 40
41 // Executed when video metadata is first read, and whenever it changes. 41 // Executed when video metadata is first read, and whenever it changes.
42 // Only used when we are using a URL demuxer (e.g. for MediaPlayerRenderer). 42 // Only used when we are using a URL demuxer (e.g. for MediaPlayerRenderer).
43 virtual void OnDurationChange(base::TimeDelta duration) = 0; 43 virtual void OnDurationChange(base::TimeDelta duration) = 0;
44
45 // Executed when the first frame is rendered after the playback restart.
46 virtual void OnFirstFrameRender() = 0;
44 }; 47 };
45 48
46 } // namespace media 49 } // namespace media
47 50
48 #endif // MEDIA_BASE_RENDERER_CLIENT_H_ 51 #endif // MEDIA_BASE_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698