From 993d6b32443cada86407e252087d72823abdda54 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Tue, 27 Sep 2011 19:14:38 +0000 Subject: Allow layers to be created without a compositor, creating this association when they are associated with a root layer/added to a hierarchy parented to a root layer.This allows us to configure a layer associated with a view before the view is attached to a widget.BUG=noneTEST=unittests Review URL: http://codereview.chromium.org/8036026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102989 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/widget.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/widget') diff --git a/views/widget/widget.cc b/views/widget/widget.cc index 4b96b87..31aa7dd 100644 --- a/views/widget/widget.cc +++ b/views/widget/widget.cc @@ -952,7 +952,7 @@ bool Widget::OnNativeWidgetPaintAccelerated(const gfx::Rect& dirty_region) { } } - compositor->set_root_layer(GetRootView()->layer()); + compositor->SetRootLayer(GetRootView()->layer()); compositor->Draw(force_clear); return true; } -- cgit v1.1