#ifndef UI_GFX_GENERIC_SHARED_MEMORY_ID_H_
#define UI_GFX_GENERIC_SHARED_MEMORY_ID_H_
#include <stddef.h>
#include <stdint.h>
#include <functional>
#include "base/hash/hash.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
class GFX_EXPORT GenericSharedMemoryId { … };
GFX_EXPORT base::trace_event::MemoryAllocatorDumpGuid
GetGenericSharedGpuMemoryGUIDForTracing(
uint64_t tracing_process_id,
GenericSharedMemoryId generic_shared_memory_id);
}
namespace std {
template <>
struct hash<gfx::GenericSharedMemoryId> { … };
hash<std::pair<gfx::GenericSharedMemoryId, Second>>;
}
#endif