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_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 #include "cc/output/copy_output_request.h" | |
| 10 | 11 |
| 11 namespace gfx { | 12 namespace gfx { |
| 12 class Rect; | 13 class Rect; |
| 13 } // namespace gfx | 14 } // namespace gfx |
| 14 | 15 |
| 15 namespace media { | 16 namespace media { |
| 16 class VideoFrame; | 17 class VideoFrame; |
| 17 } // namespace media | 18 } // namespace media |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 // space conversion if needed. | 62 // space conversion if needed. |
| 62 // | 63 // |
| 63 // When the frame is available |callback| will be called. It is up to the | 64 // When the frame is available |callback| will be called. It is up to the |
| 64 // platform layer to decide when to deliver a captured frame. | 65 // platform layer to decide when to deliver a captured frame. |
| 65 // | 66 // |
| 66 // Return false if the current frame should not be captured. | 67 // Return false if the current frame should not be captured. |
| 67 virtual bool ShouldCaptureFrame(const gfx::Rect& damage_rect, | 68 virtual bool ShouldCaptureFrame(const gfx::Rect& damage_rect, |
| 68 base::TimeTicks present_time, | 69 base::TimeTicks present_time, |
| 69 scoped_refptr<media::VideoFrame>* storage, | 70 scoped_refptr<media::VideoFrame>* storage, |
| 70 DeliverFrameCallback* callback) = 0; | 71 DeliverFrameCallback* callback) = 0; |
| 72 | |
| 73 virtual base::UnguessableToken GetSourceIdForCopyRequest() = 0; | |
|
Fady Samuel
2017/01/26 21:22:42
const base::UnguessableToken&
Saman Sami
2017/01/26 21:47:27
Done.
| |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace content | 76 } // namespace content |
| 74 | 77 |
| 75 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ | 78 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_FRAME_SUBSCRIBER_H_ |
| OLD | NEW |