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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Rect; | 12 class Rect; |
13 class Size; | |
14 } // namespace gfx | 13 } // namespace gfx |
15 | 14 |
16 namespace media { | 15 namespace media { |
17 class VideoFrame; | 16 class VideoFrame; |
18 } // namespace media | 17 } // namespace media |
19 | 18 |
20 namespace content { | 19 namespace content { |
21 | 20 |
22 // Defines an interface for listening to events of frame presentation and to | 21 // Defines an interface for listening to events of frame presentation and to |
23 // instruct the platform layer (i.e. RenderWidgetHostView) to copy a frame. | 22 // instruct the platform layer (i.e. RenderWidgetHostView) to copy a frame. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Return false if the current frame should not be captured. | 66 // Return false if the current frame should not be captured. |
68 virtual bool ShouldCaptureFrame(const gfx::Rect& damage_rect, | 67 virtual bool ShouldCaptureFrame(const gfx::Rect& damage_rect, |
69 base::TimeTicks present_time, | 68 base::TimeTicks present_time, |
70 scoped_refptr<media::VideoFrame>* storage, | 69 scoped_refptr<media::VideoFrame>* storage, |
71 DeliverFrameCallback* callback) = 0; | 70 DeliverFrameCallback* callback) = 0; |
72 }; | 71 }; |
73 | 72 |
74 } // namespace content | 73 } // namespace content |
75 | 74 |
76 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ | 75 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ |
OLD | NEW |