REVIEW: ui::Compositor: Simplify how ExternalBeginFrameClient is used.
1388384
This commit is contained in:
parent
8a51c9c2f6
commit
76fde58e27
1 changed files with 4 additions and 6 deletions
|
@ -349,12 +349,10 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
|
||||||
content::ImageTransportFactory::GetInstance();
|
content::ImageTransportFactory::GetInstance();
|
||||||
ui::ContextFactoryPrivate* context_factory_private =
|
ui::ContextFactoryPrivate* context_factory_private =
|
||||||
factory->GetContextFactoryPrivate();
|
factory->GetContextFactoryPrivate();
|
||||||
compositor_.reset(
|
compositor_.reset(new ui::Compositor(
|
||||||
new ui::Compositor(context_factory_private->AllocateFrameSinkId(),
|
context_factory_private->AllocateFrameSinkId(),
|
||||||
content::GetContextFactory(), context_factory_private,
|
content::GetContextFactory(), context_factory_private,
|
||||||
base::ThreadTaskRunnerHandle::Get(),
|
base::ThreadTaskRunnerHandle::Get(), false /* enable_pixel_canvas */));
|
||||||
features::IsSurfaceSynchronizationEnabled(),
|
|
||||||
false /* enable_pixel_canvas */));
|
|
||||||
compositor_->SetAcceleratedWidget(gfx::kNullAcceleratedWidget);
|
compositor_->SetAcceleratedWidget(gfx::kNullAcceleratedWidget);
|
||||||
compositor_->SetRootLayer(root_layer_.get());
|
compositor_->SetRootLayer(root_layer_.get());
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue