Commit 93317ec8 by Ben Clayton

Silence warnings: Add override to overriden virtual functions

Bug: b/123933266 Change-Id: I3e5f028ab323f361840a6326a1b7834995e8b8e3 Reviewed-on: https://swiftshader-review.googlesource.com/c/25017 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent d66736a8
...@@ -48,7 +48,7 @@ class Texture : public egl::Texture ...@@ -48,7 +48,7 @@ class Texture : public egl::Texture
public: public:
explicit Texture(GLuint name); explicit Texture(GLuint name);
sw::Resource *getResource() const; sw::Resource *getResource() const override;
virtual void addProxyRef(const Renderbuffer *proxy) = 0; virtual void addProxyRef(const Renderbuffer *proxy) = 0;
virtual void releaseProxy(const Renderbuffer *proxy) = 0; virtual void releaseProxy(const Renderbuffer *proxy) = 0;
...@@ -140,7 +140,7 @@ public: ...@@ -140,7 +140,7 @@ public:
void subImage(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels); void subImage(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels);
void subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels); void subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels);
void copyImage(GLint level, GLenum format, GLint x, GLint y, GLsizei width, GLsizei height, Framebuffer *source); void copyImage(GLint level, GLenum format, GLint x, GLint y, GLsizei width, GLsizei height, Framebuffer *source);
void copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, Framebuffer *source); void copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, Framebuffer *source) override;
void setSharedImage(egl::Image *image); void setSharedImage(egl::Image *image);
......
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
} }
protected: protected:
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
executionState.renderPass = renderPass; executionState.renderPass = renderPass;
executionState.renderPassFramebuffer = framebuffer; executionState.renderPassFramebuffer = framebuffer;
...@@ -77,7 +77,7 @@ public: ...@@ -77,7 +77,7 @@ public:
} }
protected: protected:
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
executionState.renderPass->nextSubpass(); executionState.renderPass->nextSubpass();
} }
...@@ -93,7 +93,7 @@ public: ...@@ -93,7 +93,7 @@ public:
} }
protected: protected:
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
executionState.renderPass->end(); executionState.renderPass->end();
executionState.renderPass = nullptr; executionState.renderPass = nullptr;
...@@ -112,7 +112,7 @@ public: ...@@ -112,7 +112,7 @@ public:
} }
protected: protected:
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
executionState.pipelines[pipelineBindPoint] = Cast(pipeline); executionState.pipelines[pipelineBindPoint] = Cast(pipeline);
} }
...@@ -129,7 +129,7 @@ struct VertexBufferBind : public CommandBuffer::Command ...@@ -129,7 +129,7 @@ struct VertexBufferBind : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
executionState.vertexInputBindings[binding] = { buffer, offset }; executionState.vertexInputBindings[binding] = { buffer, offset };
} }
...@@ -146,7 +146,7 @@ struct Draw : public CommandBuffer::Command ...@@ -146,7 +146,7 @@ struct Draw : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
GraphicsPipeline* pipeline = static_cast<GraphicsPipeline*>( GraphicsPipeline* pipeline = static_cast<GraphicsPipeline*>(
executionState.pipelines[VK_PIPELINE_BIND_POINT_GRAPHICS]); executionState.pipelines[VK_PIPELINE_BIND_POINT_GRAPHICS]);
...@@ -186,7 +186,7 @@ struct ImageToImageCopy : public CommandBuffer::Command ...@@ -186,7 +186,7 @@ struct ImageToImageCopy : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(srcImage)->copyTo(dstImage, region); Cast(srcImage)->copyTo(dstImage, region);
} }
...@@ -204,7 +204,7 @@ struct BufferToBufferCopy : public CommandBuffer::Command ...@@ -204,7 +204,7 @@ struct BufferToBufferCopy : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(srcBuffer)->copyTo(Cast(dstBuffer), region); Cast(srcBuffer)->copyTo(Cast(dstBuffer), region);
} }
...@@ -222,7 +222,7 @@ struct ImageToBufferCopy : public CommandBuffer::Command ...@@ -222,7 +222,7 @@ struct ImageToBufferCopy : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(srcImage)->copyTo(dstBuffer, region); Cast(srcImage)->copyTo(dstBuffer, region);
} }
...@@ -240,7 +240,7 @@ struct BufferToImageCopy : public CommandBuffer::Command ...@@ -240,7 +240,7 @@ struct BufferToImageCopy : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(dstImage)->copyFrom(srcBuffer, region); Cast(dstImage)->copyFrom(srcBuffer, region);
} }
...@@ -258,7 +258,7 @@ struct FillBuffer : public CommandBuffer::Command ...@@ -258,7 +258,7 @@ struct FillBuffer : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(dstBuffer)->fill(dstOffset, size, data); Cast(dstBuffer)->fill(dstOffset, size, data);
} }
...@@ -277,7 +277,7 @@ struct UpdateBuffer : public CommandBuffer::Command ...@@ -277,7 +277,7 @@ struct UpdateBuffer : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(dstBuffer)->update(dstOffset, dataSize, pData); Cast(dstBuffer)->update(dstOffset, dataSize, pData);
} }
...@@ -296,7 +296,7 @@ struct ClearColorImage : public CommandBuffer::Command ...@@ -296,7 +296,7 @@ struct ClearColorImage : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(image)->clear(color, range); Cast(image)->clear(color, range);
} }
...@@ -314,7 +314,7 @@ struct ClearDepthStencilImage : public CommandBuffer::Command ...@@ -314,7 +314,7 @@ struct ClearDepthStencilImage : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(image)->clear(depthStencil, range); Cast(image)->clear(depthStencil, range);
} }
...@@ -332,7 +332,7 @@ struct ClearAttachment : public CommandBuffer::Command ...@@ -332,7 +332,7 @@ struct ClearAttachment : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
executionState.renderPassFramebuffer->clear(attachment, rect); executionState.renderPassFramebuffer->clear(attachment, rect);
} }
...@@ -349,7 +349,7 @@ struct BlitImage : public CommandBuffer::Command ...@@ -349,7 +349,7 @@ struct BlitImage : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(srcImage)->blit(dstImage, region, filter); Cast(srcImage)->blit(dstImage, region, filter);
} }
...@@ -367,7 +367,7 @@ struct PipelineBarrier : public CommandBuffer::Command ...@@ -367,7 +367,7 @@ struct PipelineBarrier : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
// This can currently be a noop. The sw::Surface locking/unlocking mechanism used by the renderer already takes care of // This can currently be a noop. The sw::Surface locking/unlocking mechanism used by the renderer already takes care of
// making sure the read/writes always happen in order. Eventually, if we remove this synchronization mechanism, we can // making sure the read/writes always happen in order. Eventually, if we remove this synchronization mechanism, we can
...@@ -388,7 +388,7 @@ struct SignalEvent : public CommandBuffer::Command ...@@ -388,7 +388,7 @@ struct SignalEvent : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(ev)->signal(); Cast(ev)->signal();
} }
...@@ -404,7 +404,7 @@ struct ResetEvent : public CommandBuffer::Command ...@@ -404,7 +404,7 @@ struct ResetEvent : public CommandBuffer::Command
{ {
} }
void play(CommandBuffer::ExecutionState& executionState) void play(CommandBuffer::ExecutionState& executionState) override
{ {
Cast(ev)->reset(); Cast(ev)->reset();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment