OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |