diff options
author | ullysses.a.eoff <ullysses.a.eoff@intel.com> | 2015-10-28 17:54:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-29 00:55:42 +0000 |
commit | 93489a38d20cc3c877d6362edbe779e76b6c6623 (patch) | |
tree | a1ca2763495a7117a2d4da0d2d6fc0911fd89ab1 /gpu | |
parent | d601b7bf476c013e4695cf3a1fd8b1bd91860258 (diff) | |
download | chromium_src-93489a38d20cc3c877d6362edbe779e76b6c6623.zip chromium_src-93489a38d20cc3c877d6362edbe779e76b6c6623.tar.gz chromium_src-93489a38d20cc3c877d6362edbe779e76b6c6623.tar.bz2 |
gpu/khronos_glcts_support: use override specifier
Annotate the base class override functions with the
override specifier to appease the chromium-style
checker.
BUG=chromium:412865
R=kbr@chromium.org, piman@chromium.org, dpranke@chromium.org
TEST=Verify khronos_glcts_test builds and runs
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Review URL: https://codereview.chromium.org/1412793010
Cr-Commit-Position: refs/heads/master@{#356710}
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/khronos_glcts_support/native/egl_native_windowless.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gpu/khronos_glcts_support/native/egl_native_windowless.cc b/gpu/khronos_glcts_support/native/egl_native_windowless.cc index 1a575a5..0bed202 100644 --- a/gpu/khronos_glcts_support/native/egl_native_windowless.cc +++ b/gpu/khronos_glcts_support/native/egl_native_windowless.cc @@ -28,9 +28,9 @@ class Surface : public tcu::egl::WindowSurface { width_(width), height_(height) {} - int getWidth() const { return width_; } + int getWidth() const override { return width_; } - int getHeight() const { return height_; } + int getHeight() const override { return height_; } private: const int width_; @@ -48,13 +48,13 @@ class Window : public tcu::NativeWindow { eglDisplay_(display), surface_(display, config, attribList, width, height) {} - virtual ~Window() {} + ~Window() override {} - tcu::egl::Display& getEglDisplay() { return eglDisplay_; } + tcu::egl::Display& getEglDisplay() override { return eglDisplay_; } - tcu::egl::WindowSurface& getEglSurface() { return surface_; } + tcu::egl::WindowSurface& getEglSurface() override { return surface_; } - void processEvents() { return; } + void processEvents() override { return; } private: tcu::egl::Display& eglDisplay_; @@ -65,14 +65,14 @@ class Platform : public tcu::EglPlatform { public: Platform() : tcu::EglPlatform::EglPlatform() {} - virtual ~Platform() {} + ~Platform() override {} tcu::NativeWindow* createWindow(tcu::NativeDisplay& dpy, EGLConfig config, const EGLint* attribList, int width, int height, - qpVisibility visibility) { + qpVisibility visibility) override { tcu::egl::Display& eglDisplay = dpy.getEglDisplay(); egl::Display* display = static_cast<egl::Display*>(eglDisplay.getEGLDisplay()); |