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 GetSkColorTypeFromBufferFormat(uint32_t bufferFormat); 18 19 } // namespace AHardwareBufferUtils 20 21 #endif 22 23 #endif // AHardwareBufferUtils_DEFINED 24