Files
android_kernel_samsung_sm87…/qcom/opensource/display-intf/snapalloc/ISnapAlloc.h
2025-08-12 22:13:00 +02:00

30 lines
737 B
C++

/*
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#pragma once
#include "AllocationResult.h"
#include "BufferDescriptor.h"
#include "Error.h"
namespace vendor {
namespace qti {
namespace hardware {
namespace display {
namespace snapalloc {
class ISnapAlloc {
public:
virtual ~ISnapAlloc() {}
virtual Error Allocate(const BufferDescriptor &in_descriptor, int in_count,
AllocationResult *allocation_result) = 0;
virtual Error IsSupported(const BufferDescriptor &in_descriptor, bool *is_supported) = 0;
};
} // namespace snapalloc
} // namespace display
} // namespace hardware
} // namespace qti
} // namespace vendor