| Index: remoting/host/screen_recorder.cc
|
| diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc
|
| index 0b1d1d13b99317e71f4e9ab5495fbbfce82f1c69..01e10780cb684b63035791d321592160c58f89f5 100644
|
| --- a/remoting/host/screen_recorder.cc
|
| +++ b/remoting/host/screen_recorder.cc
|
| @@ -217,7 +217,7 @@ void ScreenRecorder::DoCapture() {
|
|
|
| // And finally perform one capture.
|
| capture_start_time_ = base::Time::Now();
|
| - capturer()->CaptureInvalidRects(
|
| + capturer()->CaptureInvalidRegion(
|
| NewCallback(this, &ScreenRecorder::CaptureDoneCallback));
|
| }
|
|
|
| @@ -364,7 +364,7 @@ void ScreenRecorder::DoEncode(
|
| TraceContext::tracer()->PrintString("DoEncode called");
|
|
|
| // Early out if there's nothing to encode.
|
| - if (!capture_data || !capture_data->dirty_rects().size()) {
|
| + if (!capture_data || capture_data->dirty_region().isEmpty()) {
|
| // Send an empty video packet to keep network active.
|
| VideoPacket* packet = new VideoPacket();
|
| packet->set_flags(VideoPacket::LAST_PARTITION);
|
|
|