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 "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 | 11 |
| 12 namespace gfx { |
| 13 class Rect; |
| 14 } // namespace gfx |
| 15 |
12 namespace gpu { | 16 namespace gpu { |
13 struct MailboxHolder; | 17 struct MailboxHolder; |
14 } // namespace gpu | 18 } // namespace gpu |
15 | 19 |
16 namespace media { | 20 namespace media { |
17 class VideoCaptureFormat; | 21 class VideoCaptureFormat; |
18 } // namespace media | 22 } // namespace media |
19 | 23 |
20 namespace content { | 24 namespace content { |
21 | 25 |
(...skipping 22 matching lines...) Expand all Loading... |
44 int buffer_id) = 0; | 48 int buffer_id) = 0; |
45 | 49 |
46 // A previously created buffer has been freed and will no longer be used. | 50 // A previously created buffer has been freed and will no longer be used. |
47 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id, | 51 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id, |
48 int buffer_id) = 0; | 52 int buffer_id) = 0; |
49 | 53 |
50 // A buffer has been filled with I420 video. | 54 // A buffer has been filled with I420 video. |
51 virtual void OnBufferReady(const VideoCaptureControllerID& id, | 55 virtual void OnBufferReady(const VideoCaptureControllerID& id, |
52 int buffer_id, | 56 int buffer_id, |
53 const media::VideoCaptureFormat& format, | 57 const media::VideoCaptureFormat& format, |
| 58 const gfx::Rect& visible_rect, |
54 base::TimeTicks timestamp) = 0; | 59 base::TimeTicks timestamp) = 0; |
55 | 60 |
56 // A texture mailbox buffer has been filled with data. | 61 // A texture mailbox buffer has been filled with data. |
57 virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id, | 62 virtual void OnMailboxBufferReady(const VideoCaptureControllerID& id, |
58 int buffer_id, | 63 int buffer_id, |
59 const gpu::MailboxHolder& mailbox_holder, | 64 const gpu::MailboxHolder& mailbox_holder, |
60 const media::VideoCaptureFormat& format, | 65 const media::VideoCaptureFormat& format, |
61 base::TimeTicks timestamp) = 0; | 66 base::TimeTicks timestamp) = 0; |
62 | 67 |
63 // The capture session has ended and no more frames will be sent. | 68 // The capture session has ended and no more frames will be sent. |
64 virtual void OnEnded(const VideoCaptureControllerID& id) = 0; | 69 virtual void OnEnded(const VideoCaptureControllerID& id) = 0; |
65 | 70 |
66 protected: | 71 protected: |
67 virtual ~VideoCaptureControllerEventHandler() {} | 72 virtual ~VideoCaptureControllerEventHandler() {} |
68 }; | 73 }; |
69 | 74 |
70 } // namespace content | 75 } // namespace content |
71 | 76 |
72 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA
NDLER_H_ | 77 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA
NDLER_H_ |
OLD | NEW |