blob: 22f58e2c4c8de5e73dd1c6678c06ff24fdd8410a [file] [log] [blame]
Gurchetan Singhd6b8b032017-05-31 14:31:31 -07001/*
2 * Copyright 2017 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef CROS_GRALLOC_TYPES_H
8#define CROS_GRALLOC_TYPES_H
9
Jason Macnak1de7f662020-01-24 15:05:57 -080010#include <string>
11
Gurchetan Singhd6b8b032017-05-31 14:31:31 -070012struct cros_gralloc_buffer_descriptor {
13 uint32_t width;
14 uint32_t height;
Jason Macnak1de7f662020-01-24 15:05:57 -080015 int32_t droid_format;
16 int32_t droid_usage;
Gurchetan Singhd6b8b032017-05-31 14:31:31 -070017 uint32_t drm_format;
Gurchetan Singha1892b22017-09-28 16:40:52 -070018 uint64_t use_flags;
Jason Macnak1de7f662020-01-24 15:05:57 -080019 uint64_t reserved_region_size;
20 std::string name;
Gurchetan Singhd6b8b032017-05-31 14:31:31 -070021};
22
23#endif