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

Unified Diff: cc/base/index_rect.h

Issue 2503303002: ps test.
Patch Set: rebase Created 4 years, 1 month 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 | « cc/base/BUILD.gn ('k') | cc/base/index_rect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/index_rect.h
diff --git a/cc/base/index_rect.h b/cc/base/index_rect.h
index d6d2d917828b33d4f2a8b7169c1e7a8b61d4b8c2..cc8deedb2e4d7f6e7838d6faa9de5ceecf5fa5ab 100644
--- a/cc/base/index_rect.h
+++ b/cc/base/index_rect.h
@@ -100,6 +100,9 @@ class CC_EXPORT IndexRect {
// inside this index rectangle, including edge indices.
bool Contains(int index_x, int index_y) const;
+ // Shrink the index rect by the specified amount on each side.
+ void Inset(int left, int right, int top, int bottom);
+
std::string ToString() const;
private:
« no previous file with comments | « cc/base/BUILD.gn ('k') | cc/base/index_rect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698