| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 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 | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #include "ui/gl/gl_egl_api_implementation.h" | 
|  | 6 | 
|  | 7 namespace gfx { | 
|  | 8 | 
|  | 9 RealEGLApi g_real_egl; | 
|  | 10 | 
|  | 11 void InitializeGLBindingsEGL() { | 
|  | 12   g_driver_egl.InitializeBindings(); | 
|  | 13   g_real_egl.Initialize(&g_driver_egl); | 
|  | 14   g_current_egl_context = &g_real_egl; | 
|  | 15 } | 
|  | 16 | 
|  | 17 void InitializeGLExtensionBindingsEGL(GLContext* context) { | 
|  | 18   g_driver_osmesa.InitializeExtensionBindings(context); | 
|  | 19 } | 
|  | 20 | 
|  | 21 void InitializeDebugGLBindingsEGL() { | 
|  | 22   g_driver_osmesa.InitializeDebugBindings(); | 
|  | 23 } | 
|  | 24 | 
|  | 25 void ClearGLBindingsEGL() { | 
|  | 26   g_driver_osmesa.ClearBindings(); | 
|  | 27 } | 
|  | 28 | 
|  | 29 EGLApi::EGLApi() { | 
|  | 30 } | 
|  | 31 | 
|  | 32 EGLApi::~EGLApi() { | 
|  | 33 } | 
|  | 34 | 
|  | 35 RealEGLApi::RealEGLApi() { | 
|  | 36 } | 
|  | 37 | 
|  | 38 void RealEGLApi::Initialize(DriverEGL* driver) { | 
|  | 39   driver_ = driver; | 
|  | 40 } | 
|  | 41 | 
|  | 42 }  // namespace gfx | 
|  | 43 | 
|  | 44 | 
| OLD | NEW | 
|---|