Debian Codegraph @

include/android/AHardwareBufferUtils.h

raw
1 /*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef AHardwareBufferUtils_DEFINED
8 #define AHardwareBufferUtils_DEFINED
9
10 #include "include/core/SkColorType.h"
11 #include "include/core/SkTypes.h"
12
13 #if __ANDROID_API__ >= 26
14
15 namespace AHardwareBufferUtils {
16
17 // SkColorType expected for AHBs imported as external images
18 static const SkColorType kExternalFormatColorType = SkColorType::kRGBA_8888_SkColorType;
19
20 SkColorType GetSkColorTypeFromBufferFormat(uint32_t bufferFormat);
21
22 } // namespace AHardwareBufferUtils
23
24 #endif
25
26 #endif // AHardwareBufferUtils_DEFINED