Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1882)

Unified Diff: remoting/host/capturer_helper.cc

Issue 7992011: Move us fully from gfx:: over to skia types for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for bad DEPS Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/capturer_helper.h ('k') | remoting/host/capturer_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « remoting/host/capturer_helper.h ('k') | remoting/host/capturer_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698