Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
This commit is contained in:
@@ -293,8 +293,7 @@ AndroidSurfaceTexture::NotifyFrameAvailable()
|
||||
// Proxy to main thread if we aren't on it
|
||||
if (!NS_IsMainThread()) {
|
||||
// Proxy to main thread
|
||||
nsCOMPtr<nsIRunnable> event = NS_NewRunnableMethod(this, &AndroidSurfaceTexture::NotifyFrameAvailable);
|
||||
NS_DispatchToCurrentThread(event);
|
||||
NS_DispatchToCurrentThread(NewRunnableMethod(this, &AndroidSurfaceTexture::NotifyFrameAvailable));
|
||||
} else {
|
||||
mFrameAvailableCallback->Run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user