aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-10-25 18:25:17 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-11-01 17:26:05 +0000
commit7ae80a928564eba96c4fef0b91b1c50e1647fb8d (patch)
tree18a6a38e9d61f09f46cc08ba231802eb4519b846 /arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h
parentbfd75d64b99342a6cb46380f7173c39026ed7ea2 (diff)
downloadComputeLibrary-7ae80a928564eba96c4fef0b91b1c50e1647fb8d.tar.gz
COMPMID-2549: Add GLES Runtime Context interfaces.
* Creates interfaces and concrete classes * Ports GCActivationalLayer * Adapts test framework and relevant tests Change-Id: Ide36cd65ebf185958db3c4a5bebd630fcb2f39b3 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/2199 Reviewed-by: Pablo Marquez <pablo.tello@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h')
-rw-r--r--arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h b/arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h
index 15bbfffe95..c3bd463d24 100644
--- a/arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h
+++ b/arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -26,6 +26,7 @@
#include "arm_compute/core/GLES_COMPUTE/IGCKernel.h"
#include "arm_compute/core/GLES_COMPUTE/kernels/GCFillBorderKernel.h"
+#include "arm_compute/runtime/GLES_COMPUTE/GCRuntimeContext.h"
#include "arm_compute/runtime/IFunction.h"
#include <memory>
@@ -36,8 +37,19 @@ namespace arm_compute
class IGCSimpleFunction : public IFunction
{
public:
- /** Default constructor */
- IGCSimpleFunction();
+ /** Default Constructor
+ *
+ * @param[in] ctx Runtime context to be used by the function
+ */
+ IGCSimpleFunction(GCRuntimeContext *ctx = nullptr);
+ /** Prevent instances of this class from being copied (As this class contains pointers) */
+ IGCSimpleFunction(const IGCSimpleFunction &) = delete;
+ /** Default move constructor */
+ IGCSimpleFunction(IGCSimpleFunction &&) = default;
+ /** Prevent instances of this class from being copied (As this class contains pointers) */
+ IGCSimpleFunction &operator=(const IGCSimpleFunction &) = delete;
+ /** Default move assignment operator */
+ IGCSimpleFunction &operator=(IGCSimpleFunction &&) = default;
// Inherited methods overridden:
void run() override final;
@@ -45,6 +57,7 @@ public:
protected:
std::unique_ptr<IGCKernel> _kernel; /**< Kernel to run */
GCFillBorderKernel _border_handler; /**< Kernel to handle borders */
+ GCRuntimeContext *_ctx; /**< Context to use */
};
-}
+} // namespace arm_compute
#endif /*__ARM_COMPUTE_IGCSIMPLEFUNCTION_H__ */