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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 if (!g_current_pgl_context) | 147 if (!g_current_pgl_context) |
148 return false; | 148 return false; |
149 | 149 |
150 return g_current_pgl_context->SwapBuffers(); | 150 return g_current_pgl_context->SwapBuffers(); |
151 } | 151 } |
152 | 152 |
153 PGLBoolean pglDestroyContext(PGLContext pgl_context) { | 153 PGLBoolean pglDestroyContext(PGLContext pgl_context) { |
154 if (!pgl_context) | 154 if (!pgl_context) |
155 return false; | 155 return false; |
156 | 156 |
157 delete pgl_context; | 157 delete static_cast<PGLContextImpl*>(pgl_context); |
158 return true; | 158 return true; |
159 } | 159 } |
160 | 160 |
161 } // extern "C" | 161 } // extern "C" |
OLD | NEW |