| OLD | NEW |
| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 case gfx::BufferFormat::RGBA_8888: | 429 case gfx::BufferFormat::RGBA_8888: |
| 430 case gfx::BufferFormat::RGBX_8888: | 430 case gfx::BufferFormat::RGBX_8888: |
| 431 return DRM_FORMAT_XBGR8888; | 431 return DRM_FORMAT_XBGR8888; |
| 432 case gfx::BufferFormat::BGRA_8888: | 432 case gfx::BufferFormat::BGRA_8888: |
| 433 case gfx::BufferFormat::BGRX_8888: | 433 case gfx::BufferFormat::BGRX_8888: |
| 434 return DRM_FORMAT_XRGB8888; | 434 return DRM_FORMAT_XRGB8888; |
| 435 case gfx::BufferFormat::BGR_565: | 435 case gfx::BufferFormat::BGR_565: |
| 436 return DRM_FORMAT_RGB565; | 436 return DRM_FORMAT_RGB565; |
| 437 case gfx::BufferFormat::UYVY_422: | 437 case gfx::BufferFormat::UYVY_422: |
| 438 return DRM_FORMAT_UYVY; | 438 return DRM_FORMAT_UYVY; |
| 439 case gfx::BufferFormat::YUV_420_BIPLANAR: |
| 440 return DRM_FORMAT_NV12; |
| 441 case gfx::BufferFormat::YVU_420: |
| 442 return DRM_FORMAT_YV12; |
| 439 default: | 443 default: |
| 440 NOTREACHED(); | 444 NOTREACHED(); |
| 441 return 0; | 445 return 0; |
| 442 } | 446 } |
| 443 } | 447 } |
| 444 } // namespace ui | 448 } // namespace ui |
| OLD | NEW |