diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 05:08:49 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 05:08:49 +0000 |
commit | 274e372af7a6d457e4773fdce215e3e6d70efcea (patch) | |
tree | 407836ad1a4f7a34fa14c8ff045e833d90b9b1d5 /remoting/host/screen_recorder.cc | |
parent | 418b75e0f077a184e6f1ae81f7e41e98454706dd (diff) | |
download | chromium_src-274e372af7a6d457e4773fdce215e3e6d70efcea.zip chromium_src-274e372af7a6d457e4773fdce215e3e6d70efcea.tar.gz chromium_src-274e372af7a6d457e4773fdce215e3e6d70efcea.tar.bz2 |
Switch over to using SkRegions to calculate dirty areas.
BUG=91619
TEST=Set up a remoting sesssion and make sure it works.
Review URL: http://codereview.chromium.org/7491070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/screen_recorder.cc')
-rw-r--r-- | remoting/host/screen_recorder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc index 1a05797..ce982e6 100644 --- a/remoting/host/screen_recorder.cc +++ b/remoting/host/screen_recorder.cc @@ -218,7 +218,7 @@ void ScreenRecorder::DoCapture() { // And finally perform one capture. capture_start_time_ = base::Time::Now(); - capturer()->CaptureInvalidRects( + capturer()->CaptureInvalidRegion( NewCallback(this, &ScreenRecorder::CaptureDoneCallback)); } @@ -365,7 +365,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); |