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

Unified Diff: remoting/host/capturer_fake_ascii.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_fake_ascii.h ('k') | remoting/host/capturer_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_fake_ascii.cc
diff --git a/remoting/host/capturer_fake_ascii.cc b/remoting/host/capturer_fake_ascii.cc
index e24bebd0d218cf1c64f0d960489f64c98efc43eb..f2bb5d201c63aee379472d21fb5a9e89b4026bd3 100644
--- a/remoting/host/capturer_fake_ascii.cc
+++ b/remoting/host/capturer_fake_ascii.cc
@@ -4,8 +4,6 @@
#include "remoting/host/capturer_fake_ascii.h"
-#include "ui/gfx/rect.h"
-
namespace remoting {
static const int kWidth = 32;
@@ -45,7 +43,7 @@ void CapturerFakeAscii::InvalidateRegion(const SkRegion& invalid_region) {
helper_.InvalidateRegion(invalid_region);
}
-void CapturerFakeAscii::InvalidateScreen(const gfx::Size& size) {
+void CapturerFakeAscii::InvalidateScreen(const SkISize& size) {
helper_.InvalidateScreen(size);
}
@@ -63,14 +61,14 @@ void CapturerFakeAscii::CaptureInvalidRegion(
current_buffer_ = (current_buffer_ + 1) % kNumBuffers;
planes.strides[0] = bytes_per_row_;
scoped_refptr<CaptureData> capture_data(new CaptureData(
- planes, gfx::Size(width_, height_), pixel_format_));
+ planes, SkISize::Make(width_, height_), pixel_format_));
helper_.set_size_most_recent(capture_data->size());
callback->Run(capture_data);
}
-const gfx::Size& CapturerFakeAscii::size_most_recent() const {
+const SkISize& CapturerFakeAscii::size_most_recent() const {
return helper_.size_most_recent();
}
« no previous file with comments | « remoting/host/capturer_fake_ascii.h ('k') | remoting/host/capturer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698