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

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

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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl_osmesa_api_implementation.h ('k') | ui/gl/gl_surface_egl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GL_GL_SURFACE_H_ 5 #ifndef UI_GL_GL_SURFACE_H_
6 #define UI_GL_GL_SURFACE_H_ 6 #define UI_GL_GL_SURFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 DISALLOW_COPY_AND_ASSIGN(GLSurface); 152 DISALLOW_COPY_AND_ASSIGN(GLSurface);
153 }; 153 };
154 154
155 // Implementation of GLSurface that forwards all calls through to another 155 // Implementation of GLSurface that forwards all calls through to another
156 // GLSurface. 156 // GLSurface.
157 class GL_EXPORT GLSurfaceAdapter : public GLSurface { 157 class GL_EXPORT GLSurfaceAdapter : public GLSurface {
158 public: 158 public:
159 explicit GLSurfaceAdapter(GLSurface* surface); 159 explicit GLSurfaceAdapter(GLSurface* surface);
160 160
161 virtual bool Initialize() override; 161 bool Initialize() override;
162 virtual void Destroy() override; 162 void Destroy() override;
163 virtual bool Resize(const gfx::Size& size) override; 163 bool Resize(const gfx::Size& size) override;
164 virtual bool Recreate() override; 164 bool Recreate() override;
165 virtual bool DeferDraws() override; 165 bool DeferDraws() override;
166 virtual bool IsOffscreen() override; 166 bool IsOffscreen() override;
167 virtual bool SwapBuffers() override; 167 bool SwapBuffers() override;
168 virtual bool PostSubBuffer(int x, int y, int width, int height) override; 168 bool PostSubBuffer(int x, int y, int width, int height) override;
169 virtual bool SupportsPostSubBuffer() override; 169 bool SupportsPostSubBuffer() override;
170 virtual gfx::Size GetSize() override; 170 gfx::Size GetSize() override;
171 virtual void* GetHandle() override; 171 void* GetHandle() override;
172 virtual unsigned int GetBackingFrameBufferObject() override; 172 unsigned int GetBackingFrameBufferObject() override;
173 virtual bool OnMakeCurrent(GLContext* context) override; 173 bool OnMakeCurrent(GLContext* context) override;
174 virtual bool SetBackbufferAllocation(bool allocated) override; 174 bool SetBackbufferAllocation(bool allocated) override;
175 virtual void SetFrontbufferAllocation(bool allocated) override; 175 void SetFrontbufferAllocation(bool allocated) override;
176 virtual void* GetShareHandle() override; 176 void* GetShareHandle() override;
177 virtual void* GetDisplay() override; 177 void* GetDisplay() override;
178 virtual void* GetConfig() override; 178 void* GetConfig() override;
179 virtual unsigned GetFormat() override; 179 unsigned GetFormat() override;
180 virtual VSyncProvider* GetVSyncProvider() override; 180 VSyncProvider* GetVSyncProvider() override;
181 virtual bool ScheduleOverlayPlane(int z_order, 181 bool ScheduleOverlayPlane(int z_order,
182 OverlayTransform transform, 182 OverlayTransform transform,
183 GLImage* image, 183 GLImage* image,
184 const Rect& bounds_rect, 184 const Rect& bounds_rect,
185 const RectF& crop_rect) override; 185 const RectF& crop_rect) override;
186 virtual bool IsSurfaceless() const override; 186 bool IsSurfaceless() const override;
187 187
188 GLSurface* surface() const { return surface_.get(); } 188 GLSurface* surface() const { return surface_.get(); }
189 189
190 protected: 190 protected:
191 virtual ~GLSurfaceAdapter(); 191 ~GLSurfaceAdapter() override;
192 192
193 private: 193 private:
194 scoped_refptr<GLSurface> surface_; 194 scoped_refptr<GLSurface> surface_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); 196 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter);
197 }; 197 };
198 198
199 } // namespace gfx 199 } // namespace gfx
200 200
201 #endif // UI_GL_GL_SURFACE_H_ 201 #endif // UI_GL_GL_SURFACE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_osmesa_api_implementation.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698