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

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

Issue 7477008: Remove explicit keyword from multi-argument constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « tools/traceline/traceline/assembler.h ('k') | ui/gfx/gl/gl_surface_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 #ifndef UI_GFX_GL_GL_SURFACE_EGL_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_EGL_H_
6 #define UI_GFX_GL_GL_SURFACE_EGL_H_ 6 #define UI_GFX_GL_GL_SURFACE_EGL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 protected: 42 protected:
43 bool software_; 43 bool software_;
44 44
45 private: 45 private:
46 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); 46 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL);
47 }; 47 };
48 48
49 // Encapsulates an EGL surface bound to a view. 49 // Encapsulates an EGL surface bound to a view.
50 class NativeViewGLSurfaceEGL : public GLSurfaceEGL { 50 class NativeViewGLSurfaceEGL : public GLSurfaceEGL {
51 public: 51 public:
52 explicit NativeViewGLSurfaceEGL(bool software, 52 NativeViewGLSurfaceEGL(bool software, gfx::PluginWindowHandle window);
53 gfx::PluginWindowHandle window);
54 virtual ~NativeViewGLSurfaceEGL(); 53 virtual ~NativeViewGLSurfaceEGL();
55 54
56 // Implement GLSurface. 55 // Implement GLSurface.
57 virtual bool Initialize(); 56 virtual bool Initialize();
58 virtual void Destroy(); 57 virtual void Destroy();
59 virtual bool IsOffscreen(); 58 virtual bool IsOffscreen();
60 virtual bool SwapBuffers(); 59 virtual bool SwapBuffers();
61 virtual gfx::Size GetSize(); 60 virtual gfx::Size GetSize();
62 virtual EGLSurface GetHandle(); 61 virtual EGLSurface GetHandle();
63 62
64 private: 63 private:
65 gfx::PluginWindowHandle window_; 64 gfx::PluginWindowHandle window_;
66 EGLSurface surface_; 65 EGLSurface surface_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL); 67 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL);
69 }; 68 };
70 69
71 // Encapsulates a pbuffer EGL surface. 70 // Encapsulates a pbuffer EGL surface.
72 class PbufferGLSurfaceEGL : public GLSurfaceEGL { 71 class PbufferGLSurfaceEGL : public GLSurfaceEGL {
73 public: 72 public:
74 explicit PbufferGLSurfaceEGL(bool software, const gfx::Size& size); 73 PbufferGLSurfaceEGL(bool software, const gfx::Size& size);
75 virtual ~PbufferGLSurfaceEGL(); 74 virtual ~PbufferGLSurfaceEGL();
76 75
77 // Implement GLSurface. 76 // Implement GLSurface.
78 virtual bool Initialize(); 77 virtual bool Initialize();
79 virtual void Destroy(); 78 virtual void Destroy();
80 virtual bool IsOffscreen(); 79 virtual bool IsOffscreen();
81 virtual bool SwapBuffers(); 80 virtual bool SwapBuffers();
82 virtual gfx::Size GetSize(); 81 virtual gfx::Size GetSize();
83 virtual EGLSurface GetHandle(); 82 virtual EGLSurface GetHandle();
84 83
85 private: 84 private:
86 gfx::Size size_; 85 gfx::Size size_;
87 EGLSurface surface_; 86 EGLSurface surface_;
88 87
89 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); 88 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL);
90 }; 89 };
91 90
92 } // namespace gfx 91 } // namespace gfx
93 92
94 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_ 93 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « tools/traceline/traceline/assembler.h ('k') | ui/gfx/gl/gl_surface_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698