| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |