2018-11-28 10:09:56 +00:00
|
|
|
/*
|
2021-05-16 20:51:16 +02:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2018-11-28 10:09:56 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/memory_manager/deferrable_deletion.h"
|
2018-11-28 10:09:56 +00:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-11-28 10:09:56 +00:00
|
|
|
|
|
|
|
|
class GraphicsAllocation;
|
|
|
|
|
class MemoryManager;
|
|
|
|
|
|
|
|
|
|
class DeferrableAllocationDeletion : public DeferrableDeletion {
|
|
|
|
|
public:
|
|
|
|
|
DeferrableAllocationDeletion(MemoryManager &memoryManager, GraphicsAllocation &graphicsAllocation);
|
2018-11-29 11:20:02 +01:00
|
|
|
bool apply() override;
|
2018-11-28 10:09:56 +00:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
MemoryManager &memoryManager;
|
|
|
|
|
GraphicsAllocation &graphicsAllocation;
|
|
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|