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

Unified Diff: ppapi/shared_impl/ppb_video_capture_shared.cc

Issue 10909244: PPAPI: Get TrackedCallback ready for running on non-main threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 8 years, 1 month 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/shared_impl/ppb_graphics_3d_shared.cc ('k') | ppapi/shared_impl/ppb_video_decoder_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_video_capture_shared.cc
diff --git a/ppapi/shared_impl/ppb_video_capture_shared.cc b/ppapi/shared_impl/ppb_video_capture_shared.cc
index 962b060d861a730d567d6bc6731a0973b767cbe6..2a51b951f2389e9261ff8a4b151a6e136b9c7f43 100644
--- a/ppapi/shared_impl/ppb_video_capture_shared.cc
+++ b/ppapi/shared_impl/ppb_video_capture_shared.cc
@@ -124,7 +124,7 @@ void PPB_VideoCapture_Shared::OnEnumerateDevicesComplete(
}
devices_ = NULL;
- TrackedCallback::ClearAndRun(&enumerate_devices_callback_, result);
+ enumerate_devices_callback_->Run(result);
}
void PPB_VideoCapture_Shared::OnOpenComplete(int32_t result) {
@@ -134,7 +134,7 @@ void PPB_VideoCapture_Shared::OnOpenComplete(int32_t result) {
// The callback may have been aborted by Close(), or the open operation is
// completed synchronously.
if (TrackedCallback::IsPending(open_callback_))
- TrackedCallback::ClearAndRun(&open_callback_, result);
+ open_callback_->Run(result);
}
bool PPB_VideoCapture_Shared::SetStatus(PP_VideoCaptureStatus_Dev status,
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.cc ('k') | ppapi/shared_impl/ppb_video_decoder_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698