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

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

Issue 9225038: Fold views_compositor=1 into use_aura=1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/views/view_unittest.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_win.cc
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index 43581ff26dc7de234b97f1d7c4196390e2bb350f..8ce9e9249df0bc5742541146c286dd8fe7ef3c79 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -1297,24 +1297,6 @@ LRESULT NativeWidgetWin::OnCreate(CREATESTRUCT* create_struct) {
// creation time.
ClientAreaSizeChanged();
-#if defined(VIEWS_COMPOSITOR)
- if (View::get_use_acceleration_when_possible()) {
- if (ui::Compositor::compositor_factory()) {
- compositor_ = (*Widget::compositor_factory())(this);
- } else {
- CRect window_rect;
- GetClientRect(&window_rect);
- compositor_ = ui::Compositor::Create(this,
- hwnd(),
- gfx::Size(window_rect.Width(), window_rect.Height()));
- }
- if (compositor_.get()) {
- delegate_->AsWidget()->GetRootView()->SetPaintToLayer(true);
- compositor_->SetRootLayer(delegate_->AsWidget()->GetRootView()->layer());
- }
- }
-#endif
-
delegate_->OnNativeWidgetCreated();
// Get access to a modifiable copy of the system menu.
« no previous file with comments | « ui/views/view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698