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

Unified Diff: ui/gl/gl_surface_glx.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.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.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_glx.h
diff --git a/ui/gl/gl_surface_glx.h b/ui/gl/gl_surface_glx.h
index 062702313fd88e997f9c3f2d96f8f5a1df6dbbe3..631d0540415dfebd1197e50323b0f4478e53abd9 100644
--- a/ui/gl/gl_surface_glx.h
+++ b/ui/gl/gl_surface_glx.h
@@ -35,14 +35,14 @@ class GL_EXPORT GLSurfaceGLX : public GLSurface {
static bool IsTextureFromPixmapSupported();
static bool IsOMLSyncControlSupported();
- virtual void* GetDisplay() override;
+ void* GetDisplay() override;
// Get the FB config that the surface was created with or NULL if it is not
// a GLX drawable.
- virtual void* GetConfig() = 0;
+ void* GetConfig() override = 0;
protected:
- virtual ~GLSurfaceGLX();
+ ~GLSurfaceGLX() override;
private:
DISALLOW_COPY_AND_ASSIGN(GLSurfaceGLX);
@@ -55,28 +55,28 @@ class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX,
explicit NativeViewGLSurfaceGLX(gfx::AcceleratedWidget window);
// Implement GLSurfaceGLX.
- virtual bool Initialize() override;
- virtual void Destroy() override;
- virtual bool Resize(const gfx::Size& size) override;
- virtual bool IsOffscreen() override;
- virtual bool SwapBuffers() override;
- virtual gfx::Size GetSize() override;
- virtual void* GetHandle() override;
- virtual bool SupportsPostSubBuffer() override;
- virtual void* GetConfig() override;
- virtual bool PostSubBuffer(int x, int y, int width, int height) override;
- virtual VSyncProvider* GetVSyncProvider() override;
+ bool Initialize() override;
+ void Destroy() override;
+ bool Resize(const gfx::Size& size) override;
+ bool IsOffscreen() override;
+ bool SwapBuffers() override;
+ gfx::Size GetSize() override;
+ void* GetHandle() override;
+ bool SupportsPostSubBuffer() override;
+ void* GetConfig() override;
+ bool PostSubBuffer(int x, int y, int width, int height) override;
+ VSyncProvider* GetVSyncProvider() override;
protected:
- virtual ~NativeViewGLSurfaceGLX();
+ ~NativeViewGLSurfaceGLX() override;
private:
// The handle for the drawable to make current or swap.
gfx::AcceleratedWidget GetDrawableHandle() const;
// PlatformEventDispatcher implementation
- virtual bool CanDispatchEvent(const ui::PlatformEvent& event) override;
- virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
+ bool CanDispatchEvent(const ui::PlatformEvent& event) override;
+ uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
// Window passed in at creation. Always valid.
gfx::AcceleratedWidget parent_window_;
@@ -98,16 +98,16 @@ class GL_EXPORT PbufferGLSurfaceGLX : public GLSurfaceGLX {
explicit PbufferGLSurfaceGLX(const gfx::Size& size);
// Implement GLSurfaceGLX.
- virtual bool Initialize() override;
- virtual void Destroy() override;
- virtual bool IsOffscreen() override;
- virtual bool SwapBuffers() override;
- virtual gfx::Size GetSize() override;
- virtual void* GetHandle() override;
- virtual void* GetConfig() override;
+ bool Initialize() override;
+ void Destroy() override;
+ bool IsOffscreen() override;
+ bool SwapBuffers() override;
+ gfx::Size GetSize() override;
+ void* GetHandle() override;
+ void* GetConfig() override;
protected:
- virtual ~PbufferGLSurfaceGLX();
+ ~PbufferGLSurfaceGLX() override;
private:
gfx::Size size_;
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698