summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/common/linux/drm_util_linux.h
blob: 78705b910e7bf26bc252beebfd2b3241e1581a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_OZONE_COMMON_LINUX_DRM_UTIL_LINUX_H_
#define UI_OZONE_COMMON_LINUX_DRM_UTIL_LINUX_H_

#include "ui/gfx/buffer_types.h"

namespace ui {

int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format);
gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format);

// Returns true if the fourcc format is known.
bool IsValidBufferFormat(uint32_t current_format);

}  // namespace ui

#endif  // UI_OZONE_COMMON_LINUX_DRM_UTIL_LINUX_H__