| 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 "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 Loading... |
| 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 |
| OLD | NEW |