| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "gpu/command_buffer/client/gles2_cmd_helper.h" | 5 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
| 6 #include "gpu/command_buffer/client/gles2_implementation.h" | 6 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 7 #include "gpu/command_buffer/client/gles2_lib.h" | 7 #include "gpu/command_buffer/client/gles2_lib.h" |
| 8 #include "gpu/pgl/command_buffer_pepper.h" | 8 #include "gpu/pgl/command_buffer_pepper.h" |
| 9 #include "gpu/pgl/pgl.h" | 9 #include "gpu/pgl/pgl.h" |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 if (!g_current_pgl_context) | 145 if (!g_current_pgl_context) |
| 146 return false; | 146 return false; |
| 147 | 147 |
| 148 return g_current_pgl_context->SwapBuffers(); | 148 return g_current_pgl_context->SwapBuffers(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 PGLBoolean pglDestroyContext(PGLContext pgl_context) { | 151 PGLBoolean pglDestroyContext(PGLContext pgl_context) { |
| 152 if (!pgl_context) | 152 if (!pgl_context) |
| 153 return false; | 153 return false; |
| 154 | 154 |
| 155 delete static_cast<PGLContextImpl*>(pgl_context); | 155 delete pgl_context; |
| 156 return true; | 156 return true; |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // extern "C" | 159 } // extern "C" |
| OLD | NEW |