OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "remoting/host/video_frame_recorder.h" | 5 #include "remoting/host/video_frame_recorder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
10 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "remoting/codec/video_encoder.h" | 13 #include "remoting/codec/video_encoder.h" |
13 #include "remoting/proto/video.pb.h" | 14 #include "remoting/proto/video.pb.h" |
14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 15 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
15 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 16 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
16 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 17 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
17 | 18 |
18 namespace remoting { | 19 namespace remoting { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 if (content_bytes_ + frame_bytes > max_content_bytes_) { | 240 if (content_bytes_ + frame_bytes > max_content_bytes_) { |
240 return; | 241 return; |
241 } | 242 } |
242 | 243 |
243 // Store the frame and update the content byte count. | 244 // Store the frame and update the content byte count. |
244 recorded_frames_.push_back(frame.release()); | 245 recorded_frames_.push_back(frame.release()); |
245 content_bytes_ += frame_bytes; | 246 content_bytes_ += frame_bytes; |
246 } | 247 } |
247 | 248 |
248 } // namespace remoting | 249 } // namespace remoting |
OLD | NEW |