| 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 #include "ui/gl/gl_wgl_api_implementation.h" | 5 #include "ui/gl/gl_wgl_api_implementation.h" |
| 6 #include "ui/gl/gl_implementation.h" |
| 6 | 7 |
| 7 namespace gfx { | 8 namespace gfx { |
| 8 | 9 |
| 9 RealWGLApi* g_real_wgl; | 10 RealWGLApi* g_real_wgl; |
| 10 | 11 |
| 11 void InitializeGLBindingsWGL() { | 12 void InitializeGLBindingsWGL() { |
| 12 g_driver_wgl.InitializeBindings(); | 13 g_driver_wgl.InitializeBindings(); |
| 13 if (!g_real_wgl) { | 14 if (!g_real_wgl) { |
| 14 g_real_wgl = new RealWGLApi(); | 15 g_real_wgl = new RealWGLApi(); |
| 15 } | 16 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 RealWGLApi::~RealWGLApi() { | 58 RealWGLApi::~RealWGLApi() { |
| 58 } | 59 } |
| 59 | 60 |
| 60 void RealWGLApi::Initialize(DriverWGL* driver) { | 61 void RealWGLApi::Initialize(DriverWGL* driver) { |
| 61 InitializeBase(driver); | 62 InitializeBase(driver); |
| 62 } | 63 } |
| 63 | 64 |
| 64 TraceWGLApi::~TraceWGLApi() { | 65 TraceWGLApi::~TraceWGLApi() { |
| 65 } | 66 } |
| 66 | 67 |
| 68 bool GetGLWindowSystemBindingInfoWGL(GLWindowSystemBindingInfo* info) { |
| 69 const char* extensions = wglGetExtensionsStringEXT(); |
| 70 *info = GLWindowSystemBindingInfo(); |
| 71 if (extensions) |
| 72 info->extensions = extensions; |
| 73 return true; |
| 74 } |
| 75 |
| 67 } // namespace gfx | 76 } // namespace gfx |
| 68 | 77 |
| 69 | 78 |
| OLD | NEW |