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

Unified Diff: content/common/host_shared_bitmap_manager.h

Issue 612323010: Align base::hash_map with C++11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try a different tack for C++ insanity 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
Index: content/common/host_shared_bitmap_manager.h
diff --git a/content/common/host_shared_bitmap_manager.h b/content/common/host_shared_bitmap_manager.h
index 5559a85f3eab78a43975973d925aa310754b849d..ec07b84f63782540dc01ac33de09593d0447e336 100644
--- a/content/common/host_shared_bitmap_manager.h
+++ b/content/common/host_shared_bitmap_manager.h
@@ -20,18 +20,12 @@
#include "content/common/content_export.h"
namespace BASE_HASH_NAMESPACE {
-#if defined(COMPILER_GCC)
template <>
struct hash<cc::SharedBitmapId> {
size_t operator()(const cc::SharedBitmapId& id) const {
return base::Hash(reinterpret_cast<const char*>(id.name), sizeof(id.name));
}
};
-#elif defined(COMPILER_MSVC)
-inline std::size_t hash_value(const cc::SharedBitmapId& id) {
- return base::Hash(reinterpret_cast<const char*>(id.name), sizeof(id.name));
-}
-#endif // COMPILER
} // namespace BASE_HASH_NAMESPACE
namespace content {

Powered by Google App Engine
This is Rietveld 408576698