diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-24 17:30:36 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-24 19:56:29 +0300 |
commit | e2d362757fb7e2e9d768906d5b4aefc5aaccdf67 (patch) | |
tree | 305864b9f5a58695df610a196f21de873e8ef8d0 /source/blender/compositor/operations/COM_ReadBufferOperation.h | |
parent | 9ad3d1d36b64f336fabdd9b3d9f02b13740068b0 (diff) |
Cleanup: Add override keyword.
Diffstat (limited to 'source/blender/compositor/operations/COM_ReadBufferOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ReadBufferOperation.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/compositor/operations/COM_ReadBufferOperation.h b/source/blender/compositor/operations/COM_ReadBufferOperation.h index 2ada33906ef..21ef716b727 100644 --- a/source/blender/compositor/operations/COM_ReadBufferOperation.h +++ b/source/blender/compositor/operations/COM_ReadBufferOperation.h @@ -39,18 +39,19 @@ class ReadBufferOperation : public NodeOperation { { return this->m_memoryProxy; } - void determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]); + void determineResolution(unsigned int resolution[2], + unsigned int preferredResolution[2]) override; - void *initializeTileData(rcti *rect); - void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); + void *initializeTileData(rcti *rect) override; + void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override; void executePixelExtend(float output[4], float x, float y, PixelSampler sampler, MemoryBufferExtend extend_x, MemoryBufferExtend extend_y); - void executePixelFiltered(float output[4], float x, float y, float dx[2], float dy[2]); - bool isReadBufferOperation() const + void executePixelFiltered(float output[4], float x, float y, float dx[2], float dy[2]) override; + bool isReadBufferOperation() const override { return true; } @@ -64,8 +65,8 @@ class ReadBufferOperation : public NodeOperation { } bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, - rcti *output); - MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) + rcti *output) override; + MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) override { return memoryBuffers[this->m_offset]; } |