Bug 1583956 - Add additional APZ logging. r=botond

Depends on D64461

Differential Revision: https://phabricator.services.mozilla.com/D64462

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2020-02-26 22:44:04 +00:00
Родитель ecf9bfd3d4
Коммит 4a2d909b35
3 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -2786,6 +2786,7 @@ nsEventStatus AsyncPanZoomController::GenerateSingleTap(
// the corresponding touch-up. To avoid that we schedule the singletap
// message to run on the next spin of the event loop. See bug 965381 for
// the issue this was causing.
APZC_LOG("posting runnable for HandleTap from GenerateSingleTap");
RefPtr<Runnable> runnable =
NewRunnableMethod<TapType, LayoutDevicePoint, mozilla::Modifiers,
ScrollableLayerGuid, uint64_t>(

Просмотреть файл

@ -21,6 +21,8 @@
#include "nsLayoutUtils.h"
#include "nsView.h"
static mozilla::LazyLogModule sApzChromeLog("apz.cc.chrome");
using namespace mozilla;
using namespace mozilla::layers;
using namespace mozilla::widget;
@ -164,7 +166,10 @@ void ChromeProcessController::HandleTap(
TapType aType, const mozilla::LayoutDevicePoint& aPoint,
Modifiers aModifiers, const ScrollableLayerGuid& aGuid,
uint64_t aInputBlockId) {
MOZ_LOG(sApzChromeLog, LogLevel::Debug,
("HandleTap called with %d\n", aType));
if (MessageLoop::current() != mUILoop) {
MOZ_LOG(sApzChromeLog, LogLevel::Debug, ("HandleTap redispatching\n"));
mUILoop->PostTask(
NewRunnableMethod<TapType, mozilla::LayoutDevicePoint, Modifiers,
ScrollableLayerGuid, uint64_t>(

Просмотреть файл

@ -18,6 +18,8 @@
#include "mozilla/Unused.h"
#include "Units.h"
static mozilla::LazyLogModule sApzRemoteLog("apz.cc.remote");
namespace mozilla {
namespace layers {
@ -57,6 +59,8 @@ void RemoteContentController::HandleTapOnMainThread(TapType aTapType,
Modifiers aModifiers,
ScrollableLayerGuid aGuid,
uint64_t aInputBlockId) {
MOZ_LOG(sApzRemoteLog, LogLevel::Debug,
("HandleTapOnMainThread(%d)", aTapType));
MOZ_ASSERT(NS_IsMainThread());
dom::BrowserParent* tab =
@ -87,6 +91,7 @@ void RemoteContentController::HandleTap(TapType aTapType,
Modifiers aModifiers,
const ScrollableLayerGuid& aGuid,
uint64_t aInputBlockId) {
MOZ_LOG(sApzRemoteLog, LogLevel::Debug, ("HandleTap(%d)", aTapType));
APZThreadUtils::AssertOnControllerThread();
if (XRE_GetProcessType() == GeckoProcessType_GPU) {