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

Unified Diff: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc

Issue 7762013: Added GPU process "echo" IPC message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « webkit/plugins/ppapi/ppb_graphics_3d_impl.h ('k') | webkit/plugins/ppapi/ppb_surface_3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_graphics_3d_impl.cc (revision 98655)
+++ webkit/plugins/ppapi/ppb_graphics_3d_impl.cc (working copy)
@@ -54,7 +54,8 @@
: Resource(instance),
bound_to_instance_(false),
commit_pending_(false),
- callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
+ callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
+ method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
}
PPB_Graphics3D_Impl::~PPB_Graphics3D_Impl() {
@@ -164,6 +165,9 @@
if (gles2_impl())
gles2_impl()->SwapBuffers();
+ platform_context_->Echo(method_factory_.NewRunnableMethod(
+ &PPB_Graphics3D_Impl::OnSwapBuffers));
+
return PP_OK_COMPLETIONPENDING;
}
@@ -199,8 +203,6 @@
platform_context_->SetContextLostCallback(
callback_factory_.NewCallback(&PPB_Graphics3D_Impl::OnContextLost));
- platform_context_->SetSwapBuffersCallback(
- callback_factory_.NewCallback(&PPB_Graphics3D_Impl::OnSwapBuffers));
return true;
}
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_3d_impl.h ('k') | webkit/plugins/ppapi/ppb_surface_3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698