| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 bool ProcessCopyOutputResponse(scoped_refptr<media::VideoFrame> video_frame, | 96 bool ProcessCopyOutputResponse(scoped_refptr<media::VideoFrame> video_frame, |
| 97 base::TimeTicks event_time, | 97 base::TimeTicks event_time, |
| 98 const CaptureFrameCallback& capture_frame_cb, | 98 const CaptureFrameCallback& capture_frame_cb, |
| 99 std::unique_ptr<cc::CopyOutputResult> result); | 99 std::unique_ptr<cc::CopyOutputResult> result); |
| 100 | 100 |
| 101 // Renders the cursor if needed and then delivers the captured frame. | 101 // Renders the cursor if needed and then delivers the captured frame. |
| 102 static void CopyOutputFinishedForVideo( | 102 static void CopyOutputFinishedForVideo( |
| 103 base::WeakPtr<AuraWindowCaptureMachine> machine, | 103 base::WeakPtr<AuraWindowCaptureMachine> machine, |
| 104 base::TimeTicks event_time, | 104 base::TimeTicks event_time, |
| 105 const CaptureFrameCallback& capture_frame_cb, | 105 const CaptureFrameCallback& capture_frame_cb, |
| 106 const scoped_refptr<media::VideoFrame>& target, | 106 scoped_refptr<media::VideoFrame> target, |
| 107 std::unique_ptr<cc::SingleReleaseCallback> release_callback, | 107 std::unique_ptr<cc::SingleReleaseCallback> release_callback, |
| 108 bool result); | 108 bool result); |
| 109 | 109 |
| 110 // The window associated with the desktop. | 110 // The window associated with the desktop. |
| 111 aura::Window* desktop_window_; | 111 aura::Window* desktop_window_; |
| 112 | 112 |
| 113 // Whether screen capturing or window capture. | 113 // Whether screen capturing or window capture. |
| 114 bool screen_capture_; | 114 bool screen_capture_; |
| 115 | 115 |
| 116 // Makes all the decisions about which frames to copy, and how. | 116 // Makes all the decisions about which frames to copy, and how. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 139 // immediately when InternalStop() is called to ensure that no more captured | 139 // immediately when InternalStop() is called to ensure that no more captured |
| 140 // frames will be delivered to the client. | 140 // frames will be delivered to the client. |
| 141 base::WeakPtrFactory<AuraWindowCaptureMachine> weak_factory_; | 141 base::WeakPtrFactory<AuraWindowCaptureMachine> weak_factory_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(AuraWindowCaptureMachine); | 143 DISALLOW_COPY_AND_ASSIGN(AuraWindowCaptureMachine); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace content | 146 } // namespace content |
| 147 | 147 |
| 148 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ | 148 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ |
| OLD | NEW |