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

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

Issue 1375663002: Show GpuMemoryBuffer feature in chrome://gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl formatted and removed "Formats"/"Native usage support" value pair 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 | « content/browser/gpu/browser_gpu_memory_buffer_manager.h ('k') | content/browser/gpu/gpu_internals_ui.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.cc
diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
index 099d050447c81fcbab9580c353fa16254aed47ac..3432d1460fa08c89213b4fd7c1fd508424bf96c0 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
@@ -424,6 +424,13 @@ void BrowserGpuMemoryBufferManager::ProcessRemoved(
clients_.erase(client_it);
}
+bool BrowserGpuMemoryBufferManager::IsNativeGpuMemoryBufferConfiguration(
+ gfx::BufferFormat format,
+ gfx::BufferUsage usage) const {
+ return native_configurations_.find(std::make_pair(format, usage)) !=
+ native_configurations_.end();
+}
+
scoped_ptr<gfx::GpuMemoryBuffer>
BrowserGpuMemoryBufferManager::AllocateGpuMemoryBufferForSurface(
const gfx::Size& size,
@@ -450,13 +457,6 @@ BrowserGpuMemoryBufferManager::AllocateGpuMemoryBufferForSurface(
return request.result.Pass();
}
-bool BrowserGpuMemoryBufferManager::IsNativeGpuMemoryBufferConfiguration(
- gfx::BufferFormat format,
- gfx::BufferUsage usage) const {
- return native_configurations_.find(std::make_pair(format, usage)) !=
- native_configurations_.end();
-}
-
void BrowserGpuMemoryBufferManager::HandleCreateGpuMemoryBufferOnIO(
CreateGpuMemoryBufferRequest* request) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.h ('k') | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698