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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 79f1c3c671e736f647418138e6b33b59f036d932..daa26b2415fbe01b6974057d3062fb3f29e6a370 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1149,15 +1149,15 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
// compositor for each usage.
// crbug.com/490362
BrowserGpuMemoryBufferManager::GetImageTextureTarget(
- gfx::GpuMemoryBuffer::BGRA_8888,
+ gfx::BufferFormat::BGRA_8888,
// TODO(danakj): When one-copy supports partial update, change
// this usage to PERSISTENT_MAP for one-copy.
- gfx::GpuMemoryBuffer::MAP)));
+ gfx::BufferUsage::MAP)));
command_line->AppendSwitchASCII(
switches::kVideoImageTextureTarget,
base::UintToString(BrowserGpuMemoryBufferManager::GetImageTextureTarget(
- gfx::GpuMemoryBuffer::R_8, gfx::GpuMemoryBuffer::MAP)));
+ gfx::BufferFormat::R_8, gfx::BufferUsage::MAP)));
// Appending disable-gpu-feature switches due to software rendering list.
GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/child/child_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698