Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: gpu/pgl/pgl.cc

Issue 551041: linux: enable pepper_test_plugin (Closed)
Patch Set: . Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698