зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1445662 - Annotate remaining PAPZCTreeManager-invoked methods with threading constraints. r=rhunt
These methods are already guaranteed to be called on the controller thread. MozReview-Commit-ID: 4pfUZe6cI8e --HG-- extra : rebase_source : 9ad24c0bb2e45bbd63e0a2febc14391e1a28f274
This commit is contained in:
Родитель
186ffd08c7
Коммит
a7f18cd8d9
|
@ -306,6 +306,8 @@ void
|
||||||
APZCTreeManager::SetAllowedTouchBehavior(uint64_t aInputBlockId,
|
APZCTreeManager::SetAllowedTouchBehavior(uint64_t aInputBlockId,
|
||||||
const nsTArray<TouchBehaviorFlags> &aValues)
|
const nsTArray<TouchBehaviorFlags> &aValues)
|
||||||
{
|
{
|
||||||
|
APZThreadUtils::AssertOnControllerThread();
|
||||||
|
|
||||||
mInputQueue->SetAllowedTouchBehavior(aInputBlockId, aValues);
|
mInputQueue->SetAllowedTouchBehavior(aInputBlockId, aValues);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -731,6 +733,8 @@ void
|
||||||
APZCTreeManager::StartScrollbarDrag(const ScrollableLayerGuid& aGuid,
|
APZCTreeManager::StartScrollbarDrag(const ScrollableLayerGuid& aGuid,
|
||||||
const AsyncDragMetrics& aDragMetrics)
|
const AsyncDragMetrics& aDragMetrics)
|
||||||
{
|
{
|
||||||
|
APZThreadUtils::AssertOnControllerThread();
|
||||||
|
|
||||||
RefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(aGuid);
|
RefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(aGuid);
|
||||||
if (!apzc) {
|
if (!apzc) {
|
||||||
NotifyScrollbarDragRejected(aGuid);
|
NotifyScrollbarDragRejected(aGuid);
|
||||||
|
@ -745,6 +749,8 @@ bool
|
||||||
APZCTreeManager::StartAutoscroll(const ScrollableLayerGuid& aGuid,
|
APZCTreeManager::StartAutoscroll(const ScrollableLayerGuid& aGuid,
|
||||||
const ScreenPoint& aAnchorLocation)
|
const ScreenPoint& aAnchorLocation)
|
||||||
{
|
{
|
||||||
|
APZThreadUtils::AssertOnControllerThread();
|
||||||
|
|
||||||
RefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(aGuid);
|
RefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(aGuid);
|
||||||
if (!apzc) {
|
if (!apzc) {
|
||||||
if (XRE_IsGPUProcess()) {
|
if (XRE_IsGPUProcess()) {
|
||||||
|
@ -764,6 +770,8 @@ APZCTreeManager::StartAutoscroll(const ScrollableLayerGuid& aGuid,
|
||||||
void
|
void
|
||||||
APZCTreeManager::StopAutoscroll(const ScrollableLayerGuid& aGuid)
|
APZCTreeManager::StopAutoscroll(const ScrollableLayerGuid& aGuid)
|
||||||
{
|
{
|
||||||
|
APZThreadUtils::AssertOnControllerThread();
|
||||||
|
|
||||||
if (RefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(aGuid)) {
|
if (RefPtr<AsyncPanZoomController> apzc = GetTargetAPZC(aGuid)) {
|
||||||
apzc->StopAutoscroll();
|
apzc->StopAutoscroll();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче