| 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 e4a3d6726a948b66911c61bafb2157a506ab8c54..410fadafed268494135549cb01f3ea931e489809 100644
|
| --- a/ui/views/widget/native_widget_gtk.cc
|
| +++ b/ui/views/widget/native_widget_gtk.cc
|
| @@ -649,15 +649,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);
|
|
|