diff options
Diffstat (limited to 'content/common/gpu/gpu_memory_manager.h')
-rw-r--r-- | content/common/gpu/gpu_memory_manager.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/content/common/gpu/gpu_memory_manager.h b/content/common/gpu/gpu_memory_manager.h index a3a65cc..1256bb7 100644 --- a/content/common/gpu/gpu_memory_manager.h +++ b/content/common/gpu/gpu_memory_manager.h @@ -19,20 +19,24 @@ #include "content/public/common/gpu_memory_stats.h" #include "ui/gfx/size.h" +namespace content { class GpuCommandBufferStubBase; -class GpuMemoryTrackingGroup; +} #if defined(COMPILER_GCC) namespace BASE_HASH_NAMESPACE { template<> -struct hash<GpuCommandBufferStubBase*> { - size_t operator()(GpuCommandBufferStubBase* ptr) const { +struct hash<content::GpuCommandBufferStubBase*> { + size_t operator()(content::GpuCommandBufferStubBase* ptr) const { return hash<size_t>()(reinterpret_cast<size_t>(ptr)); } }; } // namespace BASE_HASH_NAMESPACE #endif // COMPILER +namespace content { +class GpuMemoryTrackingGroup; + class CONTENT_EXPORT GpuMemoryManagerClient { public: virtual ~GpuMemoryManagerClient() {} @@ -176,6 +180,8 @@ size_t GetMaximumTabAllocation() const { DISALLOW_COPY_AND_ASSIGN(GpuMemoryManager); }; +} // namespace content + #endif #endif // CONTENT_COMMON_GPU_GPU_MEMORY_MANAGER_H_ |