Bug 1332249 - Add WebRenderCompositableHolder for WebRenderAPI r=nical?

This commit is contained in:
sotaro
2017-01-20 11:00:17 +09:00
parent d55b9baae0
commit 6126a83837
5 changed files with 40 additions and 25 deletions

View File

@@ -220,7 +220,8 @@ CrossProcessCompositorBridgeParent::AllocPWebRenderBridgeParent(const wr::Pipeli
WebRenderBridgeParent* parent = nullptr;
if (MOZ_USE_RENDER_THREAD) {
RefPtr<wr::WebRenderAPI> api = root->GetWebRenderAPI();
parent = new WebRenderBridgeParent(this, aPipelineId, nullptr, Move(api));
RefPtr<WebRenderCompositableHolder> holder = root->CompositableHolder();
parent = new WebRenderBridgeParent(this, aPipelineId, nullptr, Move(api), Move(holder));
} else {
parent = new WebRenderBridgeParent(this, aPipelineId, nullptr, root->GLContext(),
root->WindowState(), root->Compositor());