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

Unified Diff: cc/tiles/picture_layer_tiling.h

Issue 2825853002: Improvements to uses of base::SmallMap (Closed)
Patch Set: Review comments Created 3 years, 8 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 | « cc/scheduler/begin_frame_source.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/picture_layer_tiling.h
diff --git a/cc/tiles/picture_layer_tiling.h b/cc/tiles/picture_layer_tiling.h
index ecf1974efa810a069b0dd9792648fd119ba16e39..a74a058c32f2233e6bfd0ea99847e0c4ace7b825 100644
--- a/cc/tiles/picture_layer_tiling.h
+++ b/cc/tiles/picture_layer_tiling.h
@@ -63,6 +63,9 @@ struct TileMapKey {
bool operator==(const TileMapKey& other) const {
return index_x == other.index_x && index_y == other.index_y;
}
+ bool operator<(const TileMapKey& other) const {
+ return std::tie(index_x, index_y) < std::tie(other.index_x, other.index_y);
+ }
int index_x;
int index_y;
« no previous file with comments | « cc/scheduler/begin_frame_source.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698