Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
This commit is contained in:
@@ -887,7 +887,8 @@ java::GeckoSurface::LocalRef nsNPAPIPluginInstance::CreateSurface()
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIRunnable> frameCallback = NewRunnableMethod(this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable);
|
||||
nsCOMPtr<nsIRunnable> frameCallback = NewRunnableMethod("nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable",
|
||||
this, &nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable);
|
||||
|
||||
java::SurfaceTextureListener::LocalRef listener = java::SurfaceTextureListener::New();
|
||||
|
||||
@@ -1447,7 +1448,11 @@ nsNPAPIPluginInstance::ScheduleTimer(uint32_t interval, NPBool repeat, void (*ti
|
||||
return 0;
|
||||
}
|
||||
const short timerType = (repeat ? (short)nsITimer::TYPE_REPEATING_SLACK : (short)nsITimer::TYPE_ONE_SHOT);
|
||||
xpcomTimer->InitWithFuncCallback(PluginTimerCallback, newTimer, interval, timerType);
|
||||
xpcomTimer->InitWithNamedFuncCallback(PluginTimerCallback,
|
||||
newTimer,
|
||||
interval,
|
||||
timerType,
|
||||
"nsNPAPIPluginInstance::ScheduleTimer");
|
||||
newTimer->timer = xpcomTimer;
|
||||
|
||||
// save callback function
|
||||
|
||||
Reference in New Issue
Block a user