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

Unified Diff: ui/gl/gl_surface_mac.cc

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « ui/gl/gl_surface_egl.h ('k') | ui/gl/gl_surface_osmesa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_mac.cc
diff --git a/ui/gl/gl_surface_mac.cc b/ui/gl/gl_surface_mac.cc
index d5a66f16c376eace4074223fbc68f76749ae87e4..7f1ab681707b99cd160d358baf0fd5fd7e8e099e 100644
--- a/ui/gl/gl_surface_mac.cc
+++ b/ui/gl/gl_surface_mac.cc
@@ -30,20 +30,20 @@ class GL_EXPORT NoOpGLSurface : public GLSurface {
explicit NoOpGLSurface(const gfx::Size& size) : size_(size) {}
// Implement GLSurface.
- virtual bool Initialize() override { return true; }
- virtual void Destroy() override {}
- virtual bool IsOffscreen() override { return true; }
- virtual bool SwapBuffers() override {
+ bool Initialize() override { return true; }
+ void Destroy() override {}
+ bool IsOffscreen() override { return true; }
+ bool SwapBuffers() override {
NOTREACHED() << "Cannot call SwapBuffers on a NoOpGLSurface.";
return false;
}
- virtual gfx::Size GetSize() override { return size_; }
- virtual void* GetHandle() override { return NULL; }
- virtual void* GetDisplay() override { return NULL; }
- virtual bool IsSurfaceless() const override { return true; }
+ gfx::Size GetSize() override { return size_; }
+ void* GetHandle() override { return NULL; }
+ void* GetDisplay() override { return NULL; }
+ bool IsSurfaceless() const override { return true; }
protected:
- virtual ~NoOpGLSurface() {}
+ ~NoOpGLSurface() override {}
private:
gfx::Size size_;
« no previous file with comments | « ui/gl/gl_surface_egl.h ('k') | ui/gl/gl_surface_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698