mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
refactor: add NonCopyableOrMovableClass to classes that don't need copy ctors
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
038c287656
commit
72182c28e9
@@ -6,6 +6,8 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
@@ -16,7 +18,7 @@ class GraphicsAllocation;
|
||||
class LinearStream;
|
||||
class MemoryManager;
|
||||
|
||||
class ExperimentalCommandBuffer {
|
||||
class ExperimentalCommandBuffer : NonCopyableOrMovableClass {
|
||||
public:
|
||||
virtual ~ExperimentalCommandBuffer();
|
||||
ExperimentalCommandBuffer(CommandStreamReceiver *csr, double profilingTimerResolution);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/bindless_heaps_helper.h"
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/indirect_heap/indirect_heap.h"
|
||||
|
||||
#include <cstddef>
|
||||
@@ -28,7 +29,7 @@ inline constexpr size_t scratchSpaceOffsetFor64Bit = 4096u;
|
||||
|
||||
using ResidencyContainer = std::vector<GraphicsAllocation *>;
|
||||
|
||||
class ScratchSpaceController {
|
||||
class ScratchSpaceController : NonCopyableOrMovableClass {
|
||||
public:
|
||||
ScratchSpaceController(uint32_t rootDeviceIndex, ExecutionEnvironment &environment, InternalAllocationStorage &allocationStorage);
|
||||
virtual ~ScratchSpaceController();
|
||||
|
||||
Reference in New Issue
Block a user