OLD | NEW |
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_WGL_H_ | 5 #ifndef UI_GL_GL_SURFACE_WGL_H_ |
6 #define UI_GL_GL_SURFACE_WGL_H_ | 6 #define UI_GL_GL_SURFACE_WGL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/gl/gl_export.h" | 10 #include "ui/gl/gl_export.h" |
11 #include "ui/gl/gl_surface.h" | 11 #include "ui/gl/gl_surface.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gl { |
14 | 14 |
15 // Base interface for WGL surfaces. | 15 // Base interface for WGL surfaces. |
16 class GL_EXPORT GLSurfaceWGL : public GLSurface { | 16 class GL_EXPORT GLSurfaceWGL : public GLSurface { |
17 public: | 17 public: |
18 GLSurfaceWGL(); | 18 GLSurfaceWGL(); |
19 | 19 |
20 // Implement GLSurface. | 20 // Implement GLSurface. |
21 void* GetDisplay() override; | 21 void* GetDisplay() override; |
22 | 22 |
23 static bool InitializeOneOff(); | 23 static bool InitializeOneOff(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 private: | 77 private: |
78 ~PbufferGLSurfaceWGL() override; | 78 ~PbufferGLSurfaceWGL() override; |
79 | 79 |
80 gfx::Size size_; | 80 gfx::Size size_; |
81 HDC device_context_; | 81 HDC device_context_; |
82 void* pbuffer_; | 82 void* pbuffer_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceWGL); | 84 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceWGL); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace gfx | 87 } // namespace gl |
88 | 88 |
89 #endif // UI_GL_GL_SURFACE_WGL_H_ | 89 #endif // UI_GL_GL_SURFACE_WGL_H_ |
OLD | NEW |