• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2021 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 
5 #ifndef ANDROID_V4L2_CODEC2_PLUGIN_STORE_STORE_DRM_GRALLOC_HELPERS_H
6 #define ANDROID_V4L2_CODEC2_PLUGIN_STORE_STORE_DRM_GRALLOC_HELPERS_H
7 
8 #include <stdint.h>
9 
10 #include <optional>
11 
12 namespace android {
13 
14 std::optional<int> openRenderFd();
15 std::optional<uint32_t> getDrmHandle(int renderFd, int primeFd);
16 void closeDrmHandle(int renderFd, uint32_t handle);
17 
18 }  // namespace android
19 #endif  // ANDROID_V4L2_CODEC2_PLUGIN_STORE_STORE_DRM_GRALLOC_HELPERS_H
20