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

Unified Diff: ui/gl/gl_image_ozone_native_pixmap.cc

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_image_ozone_native_pixmap.cc
diff --git a/ui/gl/gl_image_ozone_native_pixmap.cc b/ui/gl/gl_image_ozone_native_pixmap.cc
index 818426178aea6fa8af3f49e92d0251fed0f445fc..9bcefcb49419ab2769e923e06bebd194a10d16f5 100644
--- a/ui/gl/gl_image_ozone_native_pixmap.cc
+++ b/ui/gl/gl_image_ozone_native_pixmap.cc
@@ -86,9 +86,9 @@ GLImageOzoneNativePixmap::GLImageOzoneNativePixmap(const Size& size,
GLImageOzoneNativePixmap::~GLImageOzoneNativePixmap() {
}
-bool GLImageOzoneNativePixmap::Initialize(ui::NativePixmap* pixmap,
- BufferFormat format) {
+bool GLImageOzoneNativePixmap::Initialize(ui::NativePixmap* pixmap) {
DCHECK(!pixmap_);
+ BufferFormat format = pixmap->GetBufferFormat();
if (pixmap->GetEGLClientBuffer()) {
EGLint attrs[] = {EGL_IMAGE_PRESERVED_KHR, EGL_TRUE, EGL_NONE};
if (!gl::GLImageEGL::Initialize(EGL_NATIVE_PIXMAP_KHR,

Powered by Google App Engine
This is Rietveld 408576698