Commit 7e8320d8 by Nico Weber

Make angle perftests build with clang.

::testing::WithParamInterface ends up calling deleting an object with the type of the template parameter, and the pointer it deletes could arguably point to a subclass of the param object -- so clang warns that there's a delete on a class with a virtual method but without a virtual dtor. Make the param classes final to let the compiler know that this can't happen in practice. BUG=chromium:82385 Change-Id: I49a4120b15670d876613b22ba709d50bf4685006 Reviewed-on: https://chromium-review.googlesource.com/261965Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarNico Weber <thakis@chromium.org>
parent 7c82bc46
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
namespace namespace
{ {
struct BufferSubDataParams : public PerfTestParams struct BufferSubDataParams final : public PerfTestParams
{ {
std::string suffix() const override; std::string suffix() const override;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
namespace namespace
{ {
struct PointSpritesParams : public PerfTestParams struct PointSpritesParams final : public PerfTestParams
{ {
std::string suffix() const override; std::string suffix() const override;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
namespace namespace
{ {
struct TexSubImageParams : public PerfTestParams struct TexSubImageParams final : public PerfTestParams
{ {
std::string suffix() const override; std::string suffix() const override;
......
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