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

Unified Diff: ui/compositor/compositor.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
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/compositor/test/in_process_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index edc4622ff25ad13f3afe906e98fd5a1bf78783a4..015a6ea51e36b8caf725ed48a130cbf1b018ce58 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -143,11 +143,11 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
// move decisions about GpuMemoryBuffer format to the browser embedder so we
// know it here, and pass that decision to the compositor for each usage.
// crbug.com/490362
- gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888;
+ gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888;
// Use PERSISTENT_MAP memory buffers to support partial tile raster for
// software raster into GpuMemoryBuffers.
- gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::PERSISTENT_MAP;
+ gfx::BufferUsage usage = gfx::BufferUsage::PERSISTENT_MAP;
settings.use_persistent_map_for_gpu_memory_buffers = true;
settings.use_image_texture_target =
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/compositor/test/in_process_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698