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/capturer_fake.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/capturer_fake.cc')
-rw-r--r-- | remoting/host/capturer_fake.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/remoting/host/capturer_fake.cc b/remoting/host/capturer_fake.cc index 8f81b5b..717e0ad 100644 --- a/remoting/host/capturer_fake.cc +++ b/remoting/host/capturer_fake.cc @@ -54,12 +54,12 @@ media::VideoFrame::Format CapturerFake::pixel_format() const { return pixel_format_; } -void CapturerFake::ClearInvalidRects() { - helper.ClearInvalidRects(); +void CapturerFake::ClearInvalidRegion() { + helper.ClearInvalidRegion(); } -void CapturerFake::InvalidateRects(const InvalidRects& inval_rects) { - helper.InvalidateRects(inval_rects); +void CapturerFake::InvalidateRegion(const SkRegion& invalid_region) { + helper.InvalidateRegion(invalid_region); } void CapturerFake::InvalidateScreen(const gfx::Size& size) { @@ -70,14 +70,14 @@ void CapturerFake::InvalidateFullScreen() { helper.InvalidateFullScreen(); } -void CapturerFake::CaptureInvalidRects(CaptureCompletedCallback* callback) { +void CapturerFake::CaptureInvalidRegion(CaptureCompletedCallback* callback) { scoped_ptr<CaptureCompletedCallback> callback_deleter(callback); GenerateImage(); InvalidateScreen(size_); - InvalidRects inval_rects; - helper.SwapInvalidRects(inval_rects); + SkRegion invalid_region; + helper.SwapInvalidRegion(&invalid_region); DataPlanes planes; planes.data[0] = buffers_[current_buffer_].get(); @@ -87,7 +87,7 @@ void CapturerFake::CaptureInvalidRects(CaptureCompletedCallback* callback) { scoped_refptr<CaptureData> capture_data(new CaptureData(planes, size_, pixel_format_)); - capture_data->mutable_dirty_rects() = inval_rects; + capture_data->mutable_dirty_region() = invalid_region; helper.set_size_most_recent(capture_data->size()); |