Merge m-c to graphics
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "mozilla/layers/APZCTreeManagerParent.h" // for APZCTreeManagerParent
|
||||
#include "mozilla/layers/APZThreadUtils.h" // for APZCTreeManager
|
||||
#include "mozilla/layers/AsyncCompositionManager.h"
|
||||
#include "mozilla/layers/CompositorOptions.h"
|
||||
#include "mozilla/layers/CompositorThread.h"
|
||||
#include "mozilla/layers/LayerManagerComposite.h"
|
||||
#include "mozilla/layers/LayerTreeOwnerTracker.h"
|
||||
@@ -110,18 +111,21 @@ CrossProcessCompositorBridgeParent::DeallocPLayerTransactionParent(PLayerTransac
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult
|
||||
CrossProcessCompositorBridgeParent::RecvAsyncPanZoomEnabled(const uint64_t& aLayersId, bool* aHasAPZ)
|
||||
CrossProcessCompositorBridgeParent::RecvGetCompositorOptions(const uint64_t& aLayersId,
|
||||
CompositorOptions* aOptions)
|
||||
{
|
||||
// Check to see if this child process has access to this layer tree.
|
||||
if (!LayerTreeOwnerTracker::Get()->IsMapped(aLayersId, OtherPid())) {
|
||||
NS_ERROR("Unexpected layers id in RecvAsyncPanZoomEnabled; dropping message...");
|
||||
NS_ERROR("Unexpected layers id in RecvGetCompositorOptions; dropping message...");
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
}
|
||||
|
||||
MonitorAutoLock lock(*sIndirectLayerTreesLock);
|
||||
CompositorBridgeParent::LayerTreeState& state = sIndirectLayerTrees[aLayersId];
|
||||
|
||||
*aHasAPZ = state.mParent ? state.mParent->AsyncPanZoomEnabled() : false;
|
||||
if (state.mParent) {
|
||||
*aOptions = state.mParent->GetOptions();
|
||||
}
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user