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

Unified Diff: components/view_manager/gles2/command_buffer_driver.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 | « cc/test/test_image_factory.cc ('k') | components/view_manager/gles2/mojo_gpu_memory_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/gles2/command_buffer_driver.cc
diff --git a/components/view_manager/gles2/command_buffer_driver.cc b/components/view_manager/gles2/command_buffer_driver.cc
index 8e86a86cbc237d6d438c12a6e7bacf53c49d02b2..dd7e558098a046c21e6d922cd20bfca6bfa0d339 100644
--- a/components/view_manager/gles2/command_buffer_driver.cc
+++ b/components/view_manager/gles2/command_buffer_driver.cc
@@ -248,8 +248,7 @@ void CommandBufferDriver::CreateImage(int32_t id,
return;
}
- gfx::GpuMemoryBuffer::Format gpu_format =
- static_cast<gfx::GpuMemoryBuffer::Format>(format);
+ gfx::BufferFormat gpu_format = static_cast<gfx::BufferFormat>(format);
if (!gpu::ImageFactory::IsGpuMemoryBufferFormatSupported(
gpu_format, decoder_->GetCapabilities())) {
LOG(ERROR) << "Format is not supported.";
« no previous file with comments | « cc/test/test_image_factory.cc ('k') | components/view_manager/gles2/mojo_gpu_memory_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698