Bug 1306211 - Add sanity check to CompositorBridgeChild::SendAllPluginsCaptured() r=nical

This commit is contained in:
Sotaro Ikeda 2016-09-29 23:27:29 -07:00
parent 14d32a0990
commit f973293243
2 changed files with 10 additions and 0 deletions

View File

@ -843,6 +843,15 @@ CompositorBridgeChild::SendNotifyApproximatelyVisibleRegion(const ScrollableLaye
return PCompositorBridgeChild::SendNotifyApproximatelyVisibleRegion(aGuid, aRegion);
}
bool
CompositorBridgeChild::SendAllPluginsCaptured()
{
if (!mCanSend) {
return false;
}
return PCompositorBridgeChild::SendAllPluginsCaptured();
}
PTextureChild*
CompositorBridgeChild::AllocPTextureChild(const SurfaceDescriptor&,
const LayersBackend&,

View File

@ -165,6 +165,7 @@ public:
bool SendClearApproximatelyVisibleRegions(uint64_t aLayersId, uint32_t aPresShellId);
bool SendNotifyApproximatelyVisibleRegion(const ScrollableLayerGuid& aGuid,
const mozilla::CSSIntRegion& aRegion);
bool SendAllPluginsCaptured();
bool IsSameProcess() const override;
virtual bool IPCOpen() const override { return mCanSend; }