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

Unified Diff: ui/views/cocoa/bridged_native_widget.mm

Issue 2622083007: MacViews: Make window content views layer-backed. (Closed)
Patch Set: Experimental! Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_native_widget.mm
diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
index 25df35a27e9d9599f25bf02c65eafb437c60b3c4..e9317173bdf40b7b684f3d93373ecf7a69a1f7e0 100644
--- a/ui/views/cocoa/bridged_native_widget.mm
+++ b/ui/views/cocoa/bridged_native_widget.mm
@@ -546,6 +546,7 @@ void BridgedNativeWidget::SetRootView(views::View* view) {
// this should be treated as an error and caught early.
CHECK(bridged_view_);
}
+ [bridged_view_ setWantsLayer:YES];
[window_ setContentView:bridged_view_];
}
@@ -1267,7 +1268,8 @@ void BridgedNativeWidget::CreateCompositor() {
ui::ContextFactoryPrivate* context_factory_private =
ViewsDelegate::GetInstance()->GetContextFactoryPrivate();
- AddCompositorSuperview();
+ //AddCompositorSuperview();
+ compositor_superview_.reset([bridged_view_ retain]);
compositor_widget_.reset(new ui::AcceleratedWidgetMac());
compositor_.reset(new ui::Compositor(context_factory, context_factory_private,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698