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

Unified Diff: content/browser/gpu/browser_gpu_memory_buffer_manager.h

Issue 2448983003: gpu: Refactor memory buffer handling code out of content.
Patch Set: . Created 4 years, 1 month 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 | « base/threading/thread_restrictions.h ('k') | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_memory_buffer_manager.h
diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.h b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
index 87166e22babbe3db79499cfb060b7bf7b9b04d3f..23ab6bd7ce3ae874a92a3d0cd30b2cba9ef3e027 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.h
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
@@ -18,6 +18,7 @@
#include "base/trace_event/memory_dump_provider.h"
#include "content/common/content_export.h"
#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
+#include "gpu/ipc/client/gpu_host_memory_buffer_manager.h"
#include "gpu/ipc/common/surface_handle.h"
namespace content {
@@ -169,14 +170,18 @@ class CONTENT_EXPORT BrowserGpuMemoryBufferManager
const int gpu_client_id_;
const uint64_t gpu_client_tracing_id_;
+ std::unique_ptr<gpu::GpuHostMemoryBufferManager> gpu_memory_buffer_manager_;
+
// The GPU process host ID. This should only be accessed on the IO thread.
int gpu_host_id_;
+#if 1
// Stores info about buffers for all clients. This should only be accessed
// on the IO thread.
using BufferMap = base::hash_map<gfx::GpuMemoryBufferId, BufferInfo>;
using ClientMap = base::hash_map<int, BufferMap>;
ClientMap clients_;
+#endif
DISALLOW_COPY_AND_ASSIGN(BrowserGpuMemoryBufferManager);
};
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698