| Index: ui/views/widget/native_widget_gtk.cc
|
| diff --git a/ui/views/widget/native_widget_gtk.cc b/ui/views/widget/native_widget_gtk.cc
|
| index a970976de5e456fb3a36f9662994d09430605eab..cfd3f6eafdb975d2fbec6d4bf414619e192c9ae1 100644
|
| --- a/ui/views/widget/native_widget_gtk.cc
|
| +++ b/ui/views/widget/native_widget_gtk.cc
|
| @@ -673,15 +673,11 @@ void NativeWidgetGtk::InitNativeWidget(const Widget::InitParams& params) {
|
| }
|
|
|
| if (View::get_use_acceleration_when_possible()) {
|
| - if (ui::Compositor::compositor_factory()) {
|
| - compositor_ = (*ui::Compositor::compositor_factory())(this);
|
| - } else {
|
| - gint width, height;
|
| - gdk_drawable_get_size(window_contents_->window, &width, &height);
|
| - compositor_ = ui::Compositor::Create(this,
|
| - GDK_WINDOW_XID(window_contents_->window),
|
| - gfx::Size(width, height));
|
| - }
|
| + gint width, height;
|
| + gdk_drawable_get_size(window_contents_->window, &width, &height);
|
| + compositor_ = ui::Compositor::Create(this,
|
| + GDK_WINDOW_XID(window_contents_->window),
|
| + gfx::Size(width, height));
|
| if (compositor_.get()) {
|
| View* root_view = delegate_->AsWidget()->GetRootView();
|
| root_view->SetPaintToLayer(true);
|
|
|