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

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

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
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_WGL_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_WGL_H_
6 #define UI_GFX_GL_GL_SURFACE_WGL_H_ 6 #define UI_GFX_GL_GL_SURFACE_WGL_H_
7 7
8 #include "ui/gfx/gl/gl_surface.h" 8 #include "ui/gfx/gl/gl_surface.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 // Base interface for WGL surfaces. 13 // Base interface for WGL surfaces.
14 class GLSurfaceWGL : public GLSurface { 14 class GLSurfaceWGL : public GLSurface {
15 public: 15 public:
16 GLSurfaceWGL(); 16 GLSurfaceWGL();
17 virtual ~GLSurfaceWGL(); 17 virtual ~GLSurfaceWGL();
18 18
19 static bool InitializeOneOff(); 19 static bool InitializeOneOff();
20 static HDC GetDisplay();
21
20 private: 22 private:
21 DISALLOW_COPY_AND_ASSIGN(GLSurfaceWGL); 23 DISALLOW_COPY_AND_ASSIGN(GLSurfaceWGL);
22 }; 24 };
23 25
24 // A surface used to render to a view. 26 // A surface used to render to a view.
25 class NativeViewGLSurfaceWGL : public GLSurfaceWGL { 27 class NativeViewGLSurfaceWGL : public GLSurfaceWGL {
26 public: 28 public:
27 explicit NativeViewGLSurfaceWGL(gfx::PluginWindowHandle window); 29 explicit NativeViewGLSurfaceWGL(gfx::PluginWindowHandle window);
28 virtual ~NativeViewGLSurfaceWGL(); 30 virtual ~NativeViewGLSurfaceWGL();
29 31
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 gfx::Size size_; 64 gfx::Size size_;
63 HDC device_context_; 65 HDC device_context_;
64 void* pbuffer_; 66 void* pbuffer_;
65 67
66 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceWGL); 68 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceWGL);
67 }; 69 };
68 70
69 } // namespace gfx 71 } // namespace gfx
70 72
71 #endif // UI_GFX_GL_GL_SURFACE_WGL_H_ 73 #endif // UI_GFX_GL_GL_SURFACE_WGL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698