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

Unified Diff: ppapi/cpp/dev/surface_3d_dev.cc

Issue 5944001: Make Graphics3D::SwapBuffers take a completion callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to Alok's Context3D/Surface3D changes Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/surface_3d_dev.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/surface_3d_dev.cc
diff --git a/ppapi/cpp/dev/surface_3d_dev.cc b/ppapi/cpp/dev/surface_3d_dev.cc
index a2226836f83b8bb62783e81c650ed23c60c6987a..eab8149e1a4bbeb049cd895c5feed70202ea3467 100644
--- a/ppapi/cpp/dev/surface_3d_dev.cc
+++ b/ppapi/cpp/dev/surface_3d_dev.cc
@@ -38,13 +38,13 @@ Surface3D_Dev::Surface3D_Dev(const Instance& instance,
}
}
-int32_t Surface3D_Dev::SwapBuffers() const {
+int32_t Surface3D_Dev::SwapBuffers(const CompletionCallback& cc) const {
if (!has_interface<PPB_Surface3D_Dev>())
return PP_ERROR_NOINTERFACE;
return get_interface<PPB_Surface3D_Dev>()->SwapBuffers(
pp_resource(),
- PP_BlockUntilComplete());
+ cc.pp_completion_callback());
}
} // namespace pp
« no previous file with comments | « ppapi/cpp/dev/surface_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