Maksim Sisov | 4d8f328 | 2018-05-25 19:43:39 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Tom Anderson | 374e3451 | 2019-12-10 23:27:16 | [diff] [blame^] | 5 | #ifndef UI_GFX_LINUX_DRM_UTIL_LINUX_H_ |
| 6 | #define UI_GFX_LINUX_DRM_UTIL_LINUX_H_ |
Maksim Sisov | 4d8f328 | 2018-05-25 19:43:39 | [diff] [blame] | 7 | |
Maksim Sisov | 4d8f328 | 2018-05-25 19:43:39 | [diff] [blame] | 8 | #include "ui/gfx/buffer_types.h" |
| 9 | |
| 10 | namespace ui { |
| 11 | |
| 12 | int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format); |
| 13 | gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format); |
| 14 | |
Maksim Sisov | cbdc9b3 | 2018-08-16 07:17:07 | [diff] [blame] | 15 | // Returns true if the fourcc format is known. |
| 16 | bool IsValidBufferFormat(uint32_t current_format); |
| 17 | |
Maksim Sisov | 4d8f328 | 2018-05-25 19:43:39 | [diff] [blame] | 18 | } // namespace ui |
| 19 | |
Tom Anderson | 374e3451 | 2019-12-10 23:27:16 | [diff] [blame^] | 20 | #endif // UI_GFX_LINUX_DRM_UTIL_LINUX_H__ |