summaryrefslogtreecommitdiffstats
path: root/remoting/host/capturer_fake.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/capturer_fake.cc')
-rw-r--r--remoting/host/capturer_fake.cc16
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());