diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 19:14:38 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 19:14:38 +0000 |
commit | 993d6b32443cada86407e252087d72823abdda54 (patch) | |
tree | b6da59774b30b94dabd34886866cfb50b2c0eb5e /views/widget | |
parent | 200210f5b91d642c424112cca35a5201143eaafd (diff) | |
download | chromium_src-993d6b32443cada86407e252087d72823abdda54.zip chromium_src-993d6b32443cada86407e252087d72823abdda54.tar.gz chromium_src-993d6b32443cada86407e252087d72823abdda54.tar.bz2 |
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
Diffstat (limited to 'views/widget')
-rw-r--r-- | views/widget/widget.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |