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

Side by Side Diff: ui/gfx/gl/gl_context_cgl.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 | « gpu/command_buffer/service/shader_translator.h ('k') | ui/gfx/gl/gl_context_osmesa.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 #include "ui/gfx/gl/gl_context.h" 5 #include "ui/gfx/gl/gl_context.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 class GLSurface; 9 class GLSurface;
10 10
11 // Encapsulates a CGL OpenGL context. 11 // Encapsulates a CGL OpenGL context.
12 class GLContextCGL : public GLContext { 12 class GLContextCGL : public GLContext {
13 public: 13 public:
14 explicit GLContextCGL(GLShareGroup* share_group); 14 explicit GLContextCGL(GLShareGroup* share_group);
15 virtual ~GLContextCGL(); 15 virtual ~GLContextCGL();
16 16
17 // Implement GLContext. 17 // Implement GLContext.
18 virtual bool Initialize( 18 virtual bool Initialize(
19 GLSurface* compatible_surface, GpuPreference gpu_preference); 19 GLSurface* compatible_surface, GpuPreference gpu_preference) OVERRIDE;
20 virtual void Destroy(); 20 virtual void Destroy() OVERRIDE;
21 virtual bool MakeCurrent(GLSurface* surface); 21 virtual bool MakeCurrent(GLSurface* surface) OVERRIDE;
22 virtual void ReleaseCurrent(GLSurface* surface); 22 virtual void ReleaseCurrent(GLSurface* surface) OVERRIDE;
23 virtual bool IsCurrent(GLSurface* surface); 23 virtual bool IsCurrent(GLSurface* surface) OVERRIDE;
24 virtual void* GetHandle(); 24 virtual void* GetHandle() OVERRIDE;
25 virtual void SetSwapInterval(int interval); 25 virtual void SetSwapInterval(int interval) OVERRIDE;
26 26
27 private: 27 private:
28 void* context_; 28 void* context_;
29 GpuPreference gpu_preference_; 29 GpuPreference gpu_preference_;
30 30
31 GpuPreference GetGpuPreference(); 31 GpuPreference GetGpuPreference();
32 32
33 DISALLOW_COPY_AND_ASSIGN(GLContextCGL); 33 DISALLOW_COPY_AND_ASSIGN(GLContextCGL);
34 }; 34 };
35 35
36 } // namespace gfx 36 } // namespace gfx
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/shader_translator.h ('k') | ui/gfx/gl/gl_context_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698