Bug 962278 - Propagate device DPI to APZC on B2G/gonk. r=kats

This commit is contained in:
Doug Sherk 2014-01-23 16:34:31 -05:00
parent 350d820834
commit f9183a7f8f

View File

@ -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;