blob: 86ff2eb2061054343636e4a82d209555114f7f44 [file] [log] [blame]
Maksim Sisov4d8f3282018-05-25 19:43:391// 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 Anderson374e34512019-12-10 23:27:165#ifndef UI_GFX_LINUX_DRM_UTIL_LINUX_H_
6#define UI_GFX_LINUX_DRM_UTIL_LINUX_H_
Maksim Sisov4d8f3282018-05-25 19:43:397
Maksim Sisov4d8f3282018-05-25 19:43:398#include "ui/gfx/buffer_types.h"
9
10namespace ui {
11
12int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format);
13gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format);
14
Maksim Sisovcbdc9b32018-08-16 07:17:0715// Returns true if the fourcc format is known.
16bool IsValidBufferFormat(uint32_t current_format);
17
Maksim Sisov4d8f3282018-05-25 19:43:3918} // namespace ui
19
Tom Anderson374e34512019-12-10 23:27:1620#endif // UI_GFX_LINUX_DRM_UTIL_LINUX_H__