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

Side by Side Diff: ppapi/cpp/dev/graphics_3d_dev.cc

Issue 5835007: Revert 69511 - Make Graphics3D::SwapBuffers take a completion callback... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | « ppapi/cpp/dev/graphics_3d_dev.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('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 "ppapi/cpp/dev/graphics_3d_dev.h" 5 #include "ppapi/cpp/dev/graphics_3d_dev.h"
6 6
7 #include "ppapi/cpp/common.h" 7 #include "ppapi/cpp/common.h"
8 #include "ppapi/cpp/instance.h" 8 #include "ppapi/cpp/instance.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 #include "ppapi/cpp/module.h" 10 #include "ppapi/cpp/module.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 config, share_context, 112 config, share_context,
113 attrib_list)); 113 attrib_list));
114 } 114 }
115 } 115 }
116 116
117 bool Graphics3D_Dev::MakeCurrent() const { 117 bool Graphics3D_Dev::MakeCurrent() const {
118 InitializeOpenGLCInterface(); 118 InitializeOpenGLCInterface();
119 return graphics_3d_f && graphics_3d_f->MakeCurent(pp_resource()); 119 return graphics_3d_f && graphics_3d_f->MakeCurent(pp_resource());
120 } 120 }
121 121
122 bool Graphics3D_Dev::SwapBuffers(const CompletionCallback& cc) const { 122 bool Graphics3D_Dev::SwapBuffers() const {
123 return graphics_3d_f && graphics_3d_f->SwapBuffers( 123 return graphics_3d_f && graphics_3d_f->SwapBuffers(pp_resource());
124 pp_resource(), cc.pp_completion_callback());
125 } 124 }
126 125
127 } // namespace pp 126 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/graphics_3d_dev.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698