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

Side by Side Diff: ui/ozone/platform/drm/common/drm_util.cc

Issue 2761533002: ozone: Import multi-planar GBMs. (Closed)
Patch Set: LE not LT. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/drm/common/drm_util.h" 5 #include "ui/ozone/platform/drm/common/drm_util.h"
6 6
7 #include <drm_fourcc.h> 7 #include <drm_fourcc.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 case gfx::BufferFormat::RGBA_8888: 424 case gfx::BufferFormat::RGBA_8888:
425 case gfx::BufferFormat::RGBX_8888: 425 case gfx::BufferFormat::RGBX_8888:
426 return DRM_FORMAT_XBGR8888; 426 return DRM_FORMAT_XBGR8888;
427 case gfx::BufferFormat::BGRA_8888: 427 case gfx::BufferFormat::BGRA_8888:
428 case gfx::BufferFormat::BGRX_8888: 428 case gfx::BufferFormat::BGRX_8888:
429 return DRM_FORMAT_XRGB8888; 429 return DRM_FORMAT_XRGB8888;
430 case gfx::BufferFormat::BGR_565: 430 case gfx::BufferFormat::BGR_565:
431 return DRM_FORMAT_RGB565; 431 return DRM_FORMAT_RGB565;
432 case gfx::BufferFormat::UYVY_422: 432 case gfx::BufferFormat::UYVY_422:
433 return DRM_FORMAT_UYVY; 433 return DRM_FORMAT_UYVY;
434 case gfx::BufferFormat::YUV_420_BIPLANAR:
435 return DRM_FORMAT_NV12;
436 case gfx::BufferFormat::YVU_420:
437 return DRM_FORMAT_YVU420;
434 default: 438 default:
435 NOTREACHED(); 439 NOTREACHED();
436 return 0; 440 return 0;
437 } 441 }
438 } 442 }
439 } // namespace ui 443 } // namespace ui
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698