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

Unified Diff: ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc

Issue 1401063002: ui: Add gfx::BufferFormat::RGBA_8888 as a supported ozone native pixmap format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_ozone_native_pixmap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc
diff --git a/ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc b/ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc
index f5dfd78e31c2e086be0969cb9e17280a7f56d513..44302eba9e11f0fdfe8d9c721df7fa48244f2d50 100644
--- a/ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc
+++ b/ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc
@@ -48,7 +48,8 @@ class ClientNativePixmapFactoryGbm : public ClientNativePixmapFactory {
gfx::BufferUsage usage) const override {
switch (usage) {
case gfx::BufferUsage::SCANOUT:
- return format == gfx::BufferFormat::BGRA_8888 ||
+ return format == gfx::BufferFormat::RGBA_8888 ||
+ format == gfx::BufferFormat::BGRA_8888 ||
format == gfx::BufferFormat::BGRX_8888;
case gfx::BufferUsage::MAP:
case gfx::BufferUsage::PERSISTENT_MAP: {
« no previous file with comments | « ui/gl/gl_image_ozone_native_pixmap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698