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 REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_H_ | 5 #ifndef REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_H_ |
6 #define REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_H_ | 6 #define REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void InvalidateRegion(const SkRegion& invalid_region) = 0; | 100 virtual void InvalidateRegion(const SkRegion& invalid_region) = 0; |
101 | 101 |
102 // Captures the screen data associated with each of the accumulated | 102 // Captures the screen data associated with each of the accumulated |
103 // dirty region. When the capture is complete, the delegate is notified even | 103 // dirty region. When the capture is complete, the delegate is notified even |
104 // if the dirty region is empty. | 104 // if the dirty region is empty. |
105 // | 105 // |
106 // It is OK to call this method while another thread is reading | 106 // It is OK to call this method while another thread is reading |
107 // data of the previous capture. There can be at most one concurrent read | 107 // data of the previous capture. There can be at most one concurrent read |
108 // going on when this method is called. | 108 // going on when this method is called. |
109 virtual void CaptureFrame() = 0; | 109 virtual void CaptureFrame() = 0; |
110 | |
111 // Get the size of the most recently captured screen. | |
112 virtual const SkISize& size_most_recent() const = 0; | |
113 }; | 110 }; |
114 | 111 |
115 } // namespace remoting | 112 } // namespace remoting |
116 | 113 |
117 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_H_ | 114 #endif // REMOTING_CAPTURER_VIDEO_FRAME_CAPTURER_H_ |
OLD | NEW |