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

Unified Diff: cc/quads/render_pass.h

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/layers/solid_color_layer_impl.cc ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.h
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index 76536b5bf58b71ab7a620e8a4954bf565f450019..28775883e5bc8085590dd273fe426e7538962714 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -133,20 +133,12 @@ class CC_EXPORT RenderPass {
} // namespace cc
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_MSVC)
-inline size_t hash_value(const cc::RenderPassId& key) {
- return base::HashPair(key.layer_id, key.index);
-}
-#elif defined(COMPILER_GCC)
template <>
struct hash<cc::RenderPassId> {
size_t operator()(cc::RenderPassId key) const {
return base::HashPair(key.layer_id, key.index);
}
};
-#else
-#error define a hash function for your compiler
-#endif // COMPILER
} // namespace BASE_HASH_NAMESPACE
namespace cc {
« no previous file with comments | « cc/layers/solid_color_layer_impl.cc ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698