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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool.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/media/video_capture_buffer_pool.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
index 38a579b6f1cb8eaec5cf44390b1931d1ce0a1aa0..4d3e9a1ffa3d90b50e7b50e555dcf68662d69981 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -181,9 +181,7 @@ bool VideoCaptureBufferPool::GpuMemoryBufferTracker::Init(
return true;
gpu_memory_buffer_ =
BrowserGpuMemoryBufferManager::current()->AllocateGpuMemoryBuffer(
- dimensions,
- gfx::GpuMemoryBuffer::BGRA_8888,
- gfx::GpuMemoryBuffer::MAP);
+ dimensions, gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::MAP);
DLOG_IF(ERROR, !gpu_memory_buffer_.get()) << "Allocating GpuMemoryBuffer";
if (!gpu_memory_buffer_.get())
return false;
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698