summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 23:05:05 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 23:05:05 +0000
commit1bb503a5a20170764117a121007aafb29f306355 (patch)
tree0444f45fc05a75310b932bd74eaab3a95754b8d4 /webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
parentfcd36fc95d953e44731164b0568e87bf472aa4de (diff)
downloadchromium_src-1bb503a5a20170764117a121007aafb29f306355.zip
chromium_src-1bb503a5a20170764117a121007aafb29f306355.tar.gz
chromium_src-1bb503a5a20170764117a121007aafb29f306355.tar.bz2
Convert callers to use the new TrackedCallback.
This converts callers in webkit/plugins/ppapi that used raw PP_CompletionCallbacks to use the new TrackedCallback code. Review URL: http://codereview.chromium.org/9015013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppb_graphics_2d_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_graphics_2d_impl.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
index caeef5c..027e8eb 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
@@ -33,6 +33,7 @@
using ppapi::thunk::EnterResourceNoLock;
using ppapi::thunk::PPB_ImageData_API;
+using ppapi::TrackedCallback;
namespace webkit {
namespace ppapi {
@@ -348,9 +349,11 @@ int32_t PPB_Graphics2D_Impl::Flush(PP_CompletionCallback callback) {
if (nothing_visible) {
// There's nothing visible to invalidate so just schedule the callback to
// execute in the next round of the message loop.
- ScheduleOffscreenCallback(FlushCallbackData(callback));
+ ScheduleOffscreenCallback(FlushCallbackData(
+ scoped_refptr<TrackedCallback>(new TrackedCallback(this, callback))));
} else {
- unpainted_flush_callback_.Set(callback);
+ unpainted_flush_callback_.Set(
+ scoped_refptr<TrackedCallback>(new TrackedCallback(this, callback)));
}
return PP_OK_COMPLETIONPENDING;
}