Index: remoting/host/capturer_helper.cc |
diff --git a/remoting/host/capturer_helper.cc b/remoting/host/capturer_helper.cc |
index 12e7d86782938fa6b953c9c2648444e1a7fdd8ef..cd7c465ede4378a8338c5580716493f5294cceb0 100644 |
--- a/remoting/host/capturer_helper.cc |
+++ b/remoting/host/capturer_helper.cc |
@@ -6,7 +6,7 @@ |
namespace remoting { |
-CapturerHelper::CapturerHelper() : size_most_recent_(0, 0) { |
+CapturerHelper::CapturerHelper() : size_most_recent_(SkISize::Make(0, 0)) { |
} |
CapturerHelper::~CapturerHelper() { |
@@ -22,14 +22,14 @@ void CapturerHelper::InvalidateRegion(const SkRegion& invalid_region) { |
invalid_region_.op(invalid_region, SkRegion::kUnion_Op); |
} |
-void CapturerHelper::InvalidateScreen(const gfx::Size& size) { |
+void CapturerHelper::InvalidateScreen(const SkISize& size) { |
base::AutoLock auto_invalid_region_lock(invalid_region_lock_); |
invalid_region_.op(SkIRect::MakeWH(size.width(), size.height()), |
SkRegion::kUnion_Op); |
} |
void CapturerHelper::InvalidateFullScreen() { |
- if (size_most_recent_ != gfx::Size(0, 0)) |
+ if (!size_most_recent_.isZero()) |
InvalidateScreen(size_most_recent_); |
} |
@@ -38,11 +38,11 @@ void CapturerHelper::SwapInvalidRegion(SkRegion* invalid_region) { |
invalid_region->swap(invalid_region_); |
} |
-const gfx::Size& CapturerHelper::size_most_recent() const { |
+const SkISize& CapturerHelper::size_most_recent() const { |
return size_most_recent_; |
} |
-void CapturerHelper::set_size_most_recent(const gfx::Size& size) { |
+void CapturerHelper::set_size_most_recent(const SkISize& size) { |
size_most_recent_ = size; |
} |