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

Unified Diff: ui/gl/gl_surface_ozone.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/gl/gl_image_shared_memory.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index a0167510f6fb78a98c46334e02ec8448a2fbcffd..38625566f0b0d3eec7eabce8d08fe2e8b3432b33 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -542,14 +542,13 @@ bool GLSurfaceOzoneSurfacelessSurfaceImpl::CreatePixmaps() {
ui::OzonePlatform::GetInstance()
->GetSurfaceFactoryOzone()
->CreateNativePixmap(widget_, GetSize(),
- ui::SurfaceFactoryOzone::BGRA_8888,
- ui::SurfaceFactoryOzone::SCANOUT);
+ gfx::BufferFormat::BGRA_8888,
+ gfx::BufferUsage::SCANOUT);
if (!pixmap)
return false;
scoped_refptr<GLImageOzoneNativePixmap> image =
new GLImageOzoneNativePixmap(GetSize(), GL_BGRA_EXT);
- if (!image->Initialize(pixmap.get(),
- gfx::GpuMemoryBuffer::Format::BGRA_8888))
+ if (!image->Initialize(pixmap.get(), gfx::BufferFormat::BGRA_8888))
return false;
images_[i] = image;
// Bind image to texture.
« no previous file with comments | « ui/gl/gl_image_shared_memory.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698