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

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

Issue 649863002: Don't create child window for WGL. (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 | « no previous file | ui/gl/gl_surface_wgl.cc » ('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_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 "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/gl/gl_surface.h" 9 #include "ui/gl/gl_surface.h"
10 10
(...skipping 24 matching lines...) Expand all
35 // Implement GLSurface. 35 // Implement GLSurface.
36 virtual bool Initialize(); 36 virtual bool Initialize();
37 virtual void Destroy(); 37 virtual void Destroy();
38 virtual bool IsOffscreen(); 38 virtual bool IsOffscreen();
39 virtual bool SwapBuffers(); 39 virtual bool SwapBuffers();
40 virtual gfx::Size GetSize(); 40 virtual gfx::Size GetSize();
41 virtual void* GetHandle(); 41 virtual void* GetHandle();
42 42
43 private: 43 private:
44 gfx::AcceleratedWidget window_; 44 gfx::AcceleratedWidget window_;
45 gfx::AcceleratedWidget child_window_;
46 HDC device_context_; 45 HDC device_context_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceWGL); 47 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceWGL);
49 }; 48 };
50 49
51 50
52 // A surface used to render to an offscreen pbuffer. 51 // A surface used to render to an offscreen pbuffer.
53 class PbufferGLSurfaceWGL : public GLSurfaceWGL { 52 class PbufferGLSurfaceWGL : public GLSurfaceWGL {
54 public: 53 public:
55 explicit PbufferGLSurfaceWGL(const gfx::Size& size); 54 explicit PbufferGLSurfaceWGL(const gfx::Size& size);
(...skipping 11 matching lines...) Expand all
67 gfx::Size size_; 66 gfx::Size size_;
68 HDC device_context_; 67 HDC device_context_;
69 void* pbuffer_; 68 void* pbuffer_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceWGL); 70 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceWGL);
72 }; 71 };
73 72
74 } // namespace gfx 73 } // namespace gfx
75 74
76 #endif // UI_GL_GL_SURFACE_WGL_H_ 75 #endif // UI_GL_GL_SURFACE_WGL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698