| Index: ui/gl/gl_surface_ozone.cc
|
| diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
|
| index ba7b02b036814056100705915fcd4bd4033603a5..982632e7eab425a466d72bce315d7a291d88680f 100644
|
| --- a/ui/gl/gl_surface_ozone.cc
|
| +++ b/ui/gl/gl_surface_ozone.cc
|
| @@ -429,11 +429,12 @@ class GL_EXPORT GLSurfaceOzoneSurfacelessSurfaceImpl
|
| for (size_t i = 0; i < arraysize(textures_); i++) {
|
| scoped_refptr<ui::NativePixmap> pixmap =
|
| ui::SurfaceFactoryOzone::GetInstance()->CreateNativePixmap(
|
| - widget_, GetSize(), ui::SurfaceFactoryOzone::RGBA_8888,
|
| - ui::SurfaceFactoryOzone::SCANOUT);
|
| + widget_, GetSize(), ui::SurfaceFactoryOzone::BGRA_8888,
|
| + ui::SurfaceFactoryOzone::SCANOUT, nullptr);
|
| if (!pixmap)
|
| return false;
|
| - scoped_refptr<SurfaceImage> image = new SurfaceImage(GetSize(), GL_RGBA);
|
| + scoped_refptr<SurfaceImage> image =
|
| + new SurfaceImage(GetSize(), GL_BGRA_EXT);
|
| if (!image->Initialize(pixmap, gfx::GpuMemoryBuffer::Format::BGRA_8888))
|
| return false;
|
| images_[i] = image;
|
|
|