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

Unified Diff: cc/surfaces/surface_id.h

Issue 1489913003: Handle pointer-events: none in browser process hittesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unneeded header Created 4 years, 11 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/surfaces/surface_hittest_delegate.h ('k') | content/browser/compositor/delegated_frame_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_id.h
diff --git a/cc/surfaces/surface_id.h b/cc/surfaces/surface_id.h
index 0ade6ab9135928c95d3a1e7cb9d70e4ef81e2078..39dcc26766ce3c898003d419ec931f84f2d6488f 100644
--- a/cc/surfaces/surface_id.h
+++ b/cc/surfaces/surface_id.h
@@ -33,6 +33,12 @@ inline bool operator<(const SurfaceId& a, const SurfaceId& b) {
return a.id < b.id;
}
+struct SurfaceIdHash {
+ size_t operator()(const SurfaceId& key) const {
+ return std::hash<uint64_t>()(key.id);
dcheng 2016/01/27 00:25:46 #include <functional>?
lfg 2016/01/27 00:41:01 Ugh, you're right. (For some reason I thought that
+ }
+};
+
} // namespace cc
namespace BASE_HASH_NAMESPACE {
« no previous file with comments | « cc/surfaces/surface_hittest_delegate.h ('k') | content/browser/compositor/delegated_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698