Bug 1425878 - Don't expose raw pointers to refcounted vsync dispatcher object. r=sotaro
MozReview-Commit-ID: 5ywkZqfY8uZ
This commit is contained in:
@@ -1255,10 +1255,11 @@ void nsBaseWidget::CreateCompositorVsyncDispatcher()
|
||||
}
|
||||
}
|
||||
|
||||
CompositorVsyncDispatcher*
|
||||
already_AddRefed<CompositorVsyncDispatcher>
|
||||
nsBaseWidget::GetCompositorVsyncDispatcher()
|
||||
{
|
||||
return mCompositorVsyncDispatcher;
|
||||
RefPtr<CompositorVsyncDispatcher> dispatcher = mCompositorVsyncDispatcher;
|
||||
return dispatcher.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<LayerManager>
|
||||
|
||||
Reference in New Issue
Block a user