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

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

Issue 1375663002: Show GpuMemoryBuffer feature in chrome://gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: display a matrix of formats and usages Created 5 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 | « no previous file | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('j') | ui/gfx/buffer_types.h » ('J')
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 18eb7d95f0672109bfb1e857f2b9334628f73f18..b64aef63adbeb0596717e65f787ca4f147e7b267 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.h
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
@@ -19,6 +19,8 @@ using GpuMemoryBufferConfigurationKey =
std::pair<gfx::BufferFormat, gfx::BufferUsage>;
using GpuMemoryBufferConfigurationSet =
base::hash_set<GpuMemoryBufferConfigurationKey>;
+using GpuMemoryBufferConfigurationList =
+ std::list<GpuMemoryBufferConfigurationKey>;
} // content
@@ -93,6 +95,8 @@ class CONTENT_EXPORT BrowserGpuMemoryBufferManager
uint32 sync_point);
void ProcessRemoved(base::ProcessHandle process_handle, int client_id);
+ GpuMemoryBufferConfigurationList
+ GetNativeGpuMemoryBufferEnabledAndSupported() { return native_enabled_and_supported_;}
private:
struct BufferInfo {
BufferInfo()
@@ -169,6 +173,7 @@ class CONTENT_EXPORT BrowserGpuMemoryBufferManager
uint64_t ClientIdToTracingProcessId(int client_id) const;
const GpuMemoryBufferConfigurationSet native_configurations_;
+ const GpuMemoryBufferConfigurationList native_enabled_and_supported_;
const int gpu_client_id_;
const uint64_t gpu_client_tracing_id_;
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_memory_buffer_manager.cc » ('j') | ui/gfx/buffer_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698