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

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

Issue 548133: Revert 36399 - linux: enable pepper_test_plugin ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
« 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
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"
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