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

Side by Side Diff: ui/gfx/gl/gl_surface.h

Issue 8486016: Add OVERRIDE to gpu/ and gl/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_context_stub.h ('k') | ui/gfx/gl/gl_surface_cgl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_GL_GL_SURFACE_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_H_
6 #define UI_GFX_GL_GL_SURFACE_H_ 6 #define UI_GFX_GL_GL_SURFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 DISALLOW_COPY_AND_ASSIGN(GLSurface); 101 DISALLOW_COPY_AND_ASSIGN(GLSurface);
102 }; 102 };
103 103
104 // Implementation of GLSurface that forwards all calls through to another 104 // Implementation of GLSurface that forwards all calls through to another
105 // GLSurface. 105 // GLSurface.
106 class GL_EXPORT GLSurfaceAdapter : public GLSurface { 106 class GL_EXPORT GLSurfaceAdapter : public GLSurface {
107 public: 107 public:
108 explicit GLSurfaceAdapter(GLSurface* surface); 108 explicit GLSurfaceAdapter(GLSurface* surface);
109 virtual ~GLSurfaceAdapter(); 109 virtual ~GLSurfaceAdapter();
110 110
111 virtual bool Initialize(); 111 virtual bool Initialize() OVERRIDE;
112 virtual void Destroy(); 112 virtual void Destroy() OVERRIDE;
113 virtual bool Resize(const gfx::Size& size); 113 virtual bool Resize(const gfx::Size& size) OVERRIDE;
114 virtual bool IsOffscreen(); 114 virtual bool IsOffscreen() OVERRIDE;
115 virtual bool SwapBuffers(); 115 virtual bool SwapBuffers() OVERRIDE;
116 virtual gfx::Size GetSize(); 116 virtual gfx::Size GetSize() OVERRIDE;
117 virtual void* GetHandle(); 117 virtual void* GetHandle() OVERRIDE;
118 virtual unsigned int GetBackingFrameBufferObject(); 118 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE;
119 virtual bool OnMakeCurrent(GLContext* context); 119 virtual bool OnMakeCurrent(GLContext* context) OVERRIDE;
120 virtual void* GetShareHandle(); 120 virtual void* GetShareHandle() OVERRIDE;
121 virtual void* GetDisplay(); 121 virtual void* GetDisplay() OVERRIDE;
122 virtual void* GetConfig(); 122 virtual void* GetConfig() OVERRIDE;
123 virtual unsigned GetFormat(); 123 virtual unsigned GetFormat() OVERRIDE;
124 124
125 GLSurface* surface() const { return surface_.get(); } 125 GLSurface* surface() const { return surface_.get(); }
126 126
127 private: 127 private:
128 scoped_refptr<GLSurface> surface_; 128 scoped_refptr<GLSurface> surface_;
129 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); 129 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter);
130 }; 130 };
131 131
132 } // namespace gfx 132 } // namespace gfx
133 133
134 #endif // UI_GFX_GL_GL_SURFACE_H_ 134 #endif // UI_GFX_GL_GL_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_context_stub.h ('k') | ui/gfx/gl/gl_surface_cgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698