Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 int buffer_id) = 0; | 42 int buffer_id) = 0; |
| 43 | 43 |
| 44 // A previously created buffer has been freed and will no longer be used. | 44 // A previously created buffer has been freed and will no longer be used. |
| 45 virtual void OnBufferDestroyed(VideoCaptureControllerID id, | 45 virtual void OnBufferDestroyed(VideoCaptureControllerID id, |
| 46 int buffer_id) = 0; | 46 int buffer_id) = 0; |
| 47 | 47 |
| 48 // A buffer has been filled with a captured VideoFrame. | 48 // A buffer has been filled with a captured VideoFrame. |
| 49 virtual void OnBufferReady(VideoCaptureControllerID id, | 49 virtual void OnBufferReady(VideoCaptureControllerID id, |
| 50 int buffer_id, | 50 int buffer_id, |
| 51 const scoped_refptr<media::VideoFrame>& frame, | 51 const scoped_refptr<media::VideoFrame>& frame, |
| 52 const base::TimeTicks& timestamp) = 0; | 52 base::TimeTicks reference_time) = 0; |
|
miu
2016/06/07 20:03:47
ditto: You can let frame->metadata() carry the REF
qiangchen
2016/06/08 18:04:30
Done.
| |
| 53 | 53 |
| 54 // The capture session has ended and no more frames will be sent. | 54 // The capture session has ended and no more frames will be sent. |
| 55 virtual void OnEnded(VideoCaptureControllerID id) = 0; | 55 virtual void OnEnded(VideoCaptureControllerID id) = 0; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 virtual ~VideoCaptureControllerEventHandler() {} | 58 virtual ~VideoCaptureControllerEventHandler() {} |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace content | 61 } // namespace content |
| 62 | 62 |
| 63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ | 63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ |
| OLD | NEW |