зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1361497 - Override AsyncPanZoomEnabled() in WebRenderLayerManager. r=jrmuizel
MozReview-Commit-ID: GlYIRN1Gjw3
This commit is contained in:
Родитель
25fc029efd
Коммит
d6bf025959
|
@ -205,7 +205,7 @@ WebRenderLayerManager::EndTransactionInternal(DrawPaintedLayerCallback aCallback
|
|||
}
|
||||
|
||||
WebRenderScrollData scrollData;
|
||||
if (mWidget->AsyncPanZoomEnabled()) {
|
||||
if (AsyncPanZoomEnabled()) {
|
||||
if (mIsFirstPaint) {
|
||||
scrollData.SetIsFirstPaint();
|
||||
mIsFirstPaint = false;
|
||||
|
@ -233,6 +233,12 @@ WebRenderLayerManager::EndTransactionInternal(DrawPaintedLayerCallback aCallback
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
WebRenderLayerManager::AsyncPanZoomEnabled() const
|
||||
{
|
||||
return mWidget->AsyncPanZoomEnabled();
|
||||
}
|
||||
|
||||
void
|
||||
WebRenderLayerManager::MakeSnapshotIfRequired(LayoutDeviceIntSize aSize)
|
||||
{
|
||||
|
|
|
@ -100,6 +100,8 @@ public:
|
|||
virtual bool NeedsComposite() const override { return mNeedsComposite; }
|
||||
virtual void SetIsFirstPaint() override { mIsFirstPaint = true; }
|
||||
|
||||
bool AsyncPanZoomEnabled() const override;
|
||||
|
||||
DrawPaintedLayerCallback GetPaintedLayerCallback() const
|
||||
{ return mPaintedLayerCallback; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче