Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1217)

Unified Diff: ui/views/widget/native_widget_gtk.cc

Issue 9297041: Merge Compositor and CompositorCC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/compositor/test/test_texture.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 410fadafed268494135549cb01f3ea931e489809..338e49fe47bc34988e28678389b3649f76aa7f6f 100644
--- a/ui/views/widget/native_widget_gtk.cc
+++ b/ui/views/widget/native_widget_gtk.cc
@@ -648,20 +648,6 @@ void NativeWidgetGtk::InitNativeWidget(const Widget::InitParams& params) {
GDK_WINDOW_TYPE_HINT_MENU);
}
- if (View::get_use_acceleration_when_possible()) {
- 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);
- compositor_->SetRootLayer(root_view->layer());
- root_view->SetFillsBoundsOpaquely(!transparent_);
- }
- }
-
delegate_->OnNativeWidgetCreated();
if (opacity_ != 255)
« no previous file with comments | « ui/gfx/compositor/test/test_texture.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698