2018-10-09 17:50:58 +08:00
|
|
|
/*
|
2019-02-01 20:49:24 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-10-09 17:50:58 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2019-02-01 20:49:24 +08:00
|
|
|
#include "runtime/memory_manager/graphics_allocation.h"
|
2018-10-09 17:50:58 +08:00
|
|
|
|
|
|
|
namespace OCLRT {
|
2018-11-02 17:01:56 +08:00
|
|
|
class CommandStreamReceiver;
|
2018-10-09 17:50:58 +08:00
|
|
|
|
|
|
|
class AllocationsList : public IDList<GraphicsAllocation, true, true> {
|
|
|
|
public:
|
2019-02-01 20:49:24 +08:00
|
|
|
std::unique_ptr<GraphicsAllocation> detachAllocation(size_t requiredMinimalSize, CommandStreamReceiver &commandStreamReceiver, GraphicsAllocation::AllocationType allocationType);
|
2018-10-09 17:50:58 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *);
|
|
|
|
};
|
|
|
|
} // namespace OCLRT
|