mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
26 lines
685 B
C++
26 lines
685 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/memory_manager/memory_operations_status.h"
|
|
#include "shared/source/utilities/arrayref.h"
|
|
|
|
namespace NEO {
|
|
|
|
class GraphicsAllocation;
|
|
|
|
class MemoryOperationsHandler {
|
|
public:
|
|
MemoryOperationsHandler() = default;
|
|
virtual ~MemoryOperationsHandler() = default;
|
|
|
|
virtual MemoryOperationsStatus makeResident(ArrayRef<GraphicsAllocation *> gfxAllocations) = 0;
|
|
virtual MemoryOperationsStatus evict(GraphicsAllocation &gfxAllocation) = 0;
|
|
virtual MemoryOperationsStatus isResident(GraphicsAllocation &gfxAllocation) = 0;
|
|
};
|
|
} // namespace NEO
|