Bug 1318045 - Fix unified build errors from moving CrossProcessCompositorBridgeParent r=bas

This commit is contained in:
Ryan Hunt
2016-11-18 12:12:25 -06:00
parent 46f6543b87
commit 58423f9776
3 changed files with 8 additions and 4 deletions

View File

@@ -193,8 +193,8 @@ CompositorBridgeParent::LayerTreeState::~LayerTreeState()
}
typedef map<uint64_t, CompositorBridgeParent::LayerTreeState> LayerTreeMap;
static LayerTreeMap sIndirectLayerTrees;
static StaticAutoPtr<mozilla::Monitor> sIndirectLayerTreesLock;
LayerTreeMap sIndirectLayerTrees;
StaticAutoPtr<mozilla::Monitor> sIndirectLayerTreesLock;
static void EnsureLayerTreeMapReady()
{
@@ -1537,7 +1537,7 @@ CompositorBridgeParent::RecvAdoptChild(const uint64_t& child)
return IPC_OK();
}
static void
void
EraseLayerState(uint64_t aId)
{
MonitorAutoLock lock(*sIndirectLayerTreesLock);
@@ -1871,7 +1871,7 @@ CompositorBridgeParent::CreateForContent(Endpoint<PCompositorBridgeParent>&& aEn
return true;
}
static void
void
UpdateIndirectTree(uint64_t aId, Layer* aRoot, const TargetConfig& aTargetConfig)
{
MonitorAutoLock lock(*sIndirectLayerTreesLock);

View File

@@ -86,6 +86,7 @@
#endif
#include "LayerScope.h"
using namespace std;
namespace mozilla {
@@ -95,6 +96,8 @@ namespace layers {
typedef map<uint64_t, CompositorBridgeParent::LayerTreeState> LayerTreeMap;
extern LayerTreeMap sIndirectLayerTrees;
extern StaticAutoPtr<mozilla::Monitor> sIndirectLayerTreesLock;
void UpdateIndirectTree(uint64_t aId, Layer* aRoot, const TargetConfig& aTargetConfig);
void EraseLayerState(uint64_t aId);
mozilla::ipc::IPCResult
CrossProcessCompositorBridgeParent::RecvRequestNotifyAfterRemotePaint()

View File

@@ -8,6 +8,7 @@
#define mozilla_layers_CrossProcessCompositorBridgeParent_h
#include "mozilla/layers/CompositorBridgeParent.h"
#include "mozilla/layers/CompositorThread.h"
namespace mozilla {
namespace layers {