mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 962278 - Propagate device DPI to APZC on B2G/gonk. r=kats
This commit is contained in:
parent
350d820834
commit
f9183a7f8f
@ -43,6 +43,7 @@
|
||||
#include "libdisplay/GonkDisplay.h"
|
||||
#include "pixelflinger/format.h"
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "mozilla/layers/APZCTreeManager.h"
|
||||
#include "mozilla/layers/CompositorParent.h"
|
||||
#include "ParentProcessController.h"
|
||||
#include "nsThreadUtils.h"
|
||||
@ -573,6 +574,7 @@ nsWindow::GetLayerManager(PLayerTransactionChild* aShadowManager,
|
||||
if (mCompositorParent) {
|
||||
uint64_t rootLayerTreeId = mCompositorParent->RootLayerTreeId();
|
||||
CompositorParent::SetControllerForLayerTree(rootLayerTreeId, new ParentProcessController());
|
||||
CompositorParent::GetAPZCTreeManager(rootLayerTreeId)->SetDPI(GetDPI());
|
||||
}
|
||||
if (mLayerManager)
|
||||
return mLayerManager;
|
||||
|
Loading…
Reference in New Issue
Block a user