REVIEW: Implements core logic for Pixel Canvas
https://codereview.chromium.org/2877483003
This commit is contained in:
parent
f52f752acd
commit
6f00e4a014
1 changed files with 7 additions and 3 deletions
|
@ -303,9 +303,13 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
|
||||||
ui::ContextFactoryPrivate* context_factory_private =
|
ui::ContextFactoryPrivate* context_factory_private =
|
||||||
factory->GetContextFactoryPrivate();
|
factory->GetContextFactoryPrivate();
|
||||||
compositor_.reset(
|
compositor_.reset(
|
||||||
new ui::Compositor(context_factory_private->AllocateFrameSinkId(),
|
new ui::Compositor(
|
||||||
content::GetContextFactory(), context_factory_private,
|
context_factory_private->AllocateFrameSinkId(),
|
||||||
base::ThreadTaskRunnerHandle::Get(), false));
|
content::GetContextFactory(),
|
||||||
|
context_factory_private,
|
||||||
|
base::ThreadTaskRunnerHandle::Get(),
|
||||||
|
false /* enable_surface_synchronization */,
|
||||||
|
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…
Reference in a new issue