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

Unified Diff: gfx/rect.cc

Issue 3013015: Initial pass at integrating Differ into the chromoting host code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « gfx/rect.h ('k') | remoting/base/capture_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/rect.cc
===================================================================
--- gfx/rect.cc (revision 55264)
+++ gfx/rect.cc (working copy)
@@ -117,6 +117,18 @@
return origin_ == other.origin_ && size_ == other.size_;
}
+bool Rect::operator<(const Rect& other) const {
+ if (origin_ == other.origin_) {
+ if (width() == other.width()) {
+ return height() < other.height();
+ } else {
+ return width() < other.width();
+ }
+ } else {
+ return origin_ < other.origin_;
+ }
+}
+
#if defined(OS_WIN)
RECT Rect::ToRECT() const {
RECT r;
« no previous file with comments | « gfx/rect.h ('k') | remoting/base/capture_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698