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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 1071273002: NotForReview: Implement zero/one-copy texture for ozone freon using Intel DRM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: 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;

Powered by Google App Engine
This is Rietveld 408576698