Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: gpu/khronos_glcts_support/native/egl_native_windowless.cc

Issue 1412793010: gpu/khronos_glcts_support: use override specifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/khronos_glcts_support/native/egl_native_windowless.cc
diff --git a/gpu/khronos_glcts_support/native/egl_native_windowless.cc b/gpu/khronos_glcts_support/native/egl_native_windowless.cc
index 1a575a5010468e617b7e797d2bc0bb759a1fd4bb..0bed202b0a847846ee939d9d5b27e9d3aa25cd7c 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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698