summaryrefslogtreecommitdiffstats
path: root/ui/gfx/native_pixmap_handle_ozone.h
blob: 149f24308c530ae3e4a54b77da0ee30f41820844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2015 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_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_
#define UI_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_

#include <stdint.h>

#include "base/file_descriptor_posix.h"

namespace gfx {

struct NativePixmapHandle {
  // A file descriptor for the underlying memory object (usually dmabuf).
  base::FileDescriptor fd;

  // The stride to used when accessing the buffer via a memory mapping.
  int32_t stride = 0;
};

}  // namespace gfx

#endif  // UI_GFX_NATIVE_PIXMAP_HANDLE_OZONE_H_