| 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_gl_api_implementation.h" | 5 #include "ui/gl/gl_gl_api_implementation.h" | 
| 6 | 6 | 
| 7 #include <algorithm> | 7 #include <algorithm> | 
| 8 #include <vector> | 8 #include <vector> | 
| 9 | 9 | 
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" | 
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 327 | 327 | 
| 328 void SetGLApiToNoContext() { | 328 void SetGLApiToNoContext() { | 
| 329   SetGLApi(g_no_context_gl); | 329   SetGLApi(g_no_context_gl); | 
| 330 } | 330 } | 
| 331 | 331 | 
| 332 const GLVersionInfo* GetGLVersionInfo() { | 332 const GLVersionInfo* GetGLVersionInfo() { | 
| 333   return g_version_info; | 333   return g_version_info; | 
| 334 } | 334 } | 
| 335 | 335 | 
| 336 void InitializeDynamicGLBindingsGL(GLContext* context) { | 336 void InitializeDynamicGLBindingsGL(GLContext* context) { | 
| 337   if (g_version_info) |  | 
| 338     return; |  | 
| 339   g_real_gl->InitializeFilteredExtensions(); | 337   g_real_gl->InitializeFilteredExtensions(); | 
| 340   g_driver_gl.InitializeCustomDynamicBindings(context); | 338   g_driver_gl.InitializeCustomDynamicBindings(context); | 
| 341   DCHECK(context && context->IsCurrent(NULL) && !g_version_info); | 339   DCHECK(context && context->IsCurrent(NULL) && !g_version_info); | 
| 342   g_version_info = new GLVersionInfo( | 340   g_version_info = new GLVersionInfo( | 
| 343       context->GetGLVersion().c_str(), | 341       context->GetGLVersion().c_str(), | 
| 344       context->GetGLRenderer().c_str(), | 342       context->GetGLRenderer().c_str(), | 
| 345       context->GetExtensions().c_str()); | 343       context->GetExtensions().c_str()); | 
| 346 } | 344 } | 
| 347 | 345 | 
| 348 void InitializeDebugGLBindingsGL() { | 346 void InitializeDebugGLBindingsGL() { | 
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 611 | 609 | 
| 612 void VirtualGLApi::glFlushFn() { | 610 void VirtualGLApi::glFlushFn() { | 
| 613   GLApiBase::glFlushFn(); | 611   GLApiBase::glFlushFn(); | 
| 614 } | 612 } | 
| 615 | 613 | 
| 616 void VirtualGLApi::glFinishFn() { | 614 void VirtualGLApi::glFinishFn() { | 
| 617   GLApiBase::glFinishFn(); | 615   GLApiBase::glFinishFn(); | 
| 618 } | 616 } | 
| 619 | 617 | 
| 620 }  // namespace gfx | 618 }  // namespace gfx | 
| OLD | NEW | 
|---|