diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 03:19:12 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 03:19:12 +0000 |
commit | da7584c4ac68c5828fafdedf055ae86e90bf4a3a (patch) | |
tree | 7131e828da36341a8cb86c0d984e923f4117b976 /ui/views/widget | |
parent | 44f3e79b95fd6225ab760a0442d4fb23a9bc41b5 (diff) | |
download | chromium_src-da7584c4ac68c5828fafdedf055ae86e90bf4a3a.zip chromium_src-da7584c4ac68c5828fafdedf055ae86e90bf4a3a.tar.gz chromium_src-da7584c4ac68c5828fafdedf055ae86e90bf4a3a.tar.bz2 |
aura: Add Layer::LAYER_SOLID_COLOR to compositor.
This adds a new layer type backed by
WebKit::WebSolidColorLayer. I'm using it for the power
button animation's background (which previously had a
fullscreen texture that it just painted black).
I'm also renaming LAYER_HAS_TEXTURE to LAYER_TEXTURED and
LAYER_HAS_NO_TEXTURE to LAYER_NOT_DRAWN.
BUG=109083
TEST=manual: checked that the power button animation looks the same as before
TBR=sky
Review URL: http://codereview.chromium.org/9289036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget')
-rw-r--r-- | ui/views/widget/native_widget_aura.cc | 4 | ||||
-rw-r--r-- | ui/views/widget/native_widget_aura_unittest.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc index 08e50cd..b9ff0a2 100644 --- a/ui/views/widget/native_widget_aura.cc +++ b/ui/views/widget/native_widget_aura.cc @@ -175,8 +175,8 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) { window_->SetIntProperty(aura::client::kShowStateKey, params.show_state); window_->SetTransparent(params.transparent); window_->Init(params.create_texture_for_layer ? - ui::Layer::LAYER_HAS_TEXTURE : - ui::Layer::LAYER_HAS_NO_TEXTURE); + ui::Layer::LAYER_TEXTURED : + ui::Layer::LAYER_NOT_DRAWN); if (params.type == Widget::InitParams::TYPE_CONTROL) window_->Show(); diff --git a/ui/views/widget/native_widget_aura_unittest.cc b/ui/views/widget/native_widget_aura_unittest.cc index 91e02a3..e7ddf31 100644 --- a/ui/views/widget/native_widget_aura_unittest.cc +++ b/ui/views/widget/native_widget_aura_unittest.cc @@ -48,7 +48,7 @@ class NativeWidgetAuraTest : public testing::Test { TEST_F(NativeWidgetAuraTest, CenterWindowLargeParent) { // Make a parent window larger than the host represented by rootwindow. scoped_ptr<aura::Window> parent(new aura::Window(NULL)); - parent->Init(ui::Layer::LAYER_HAS_NO_TEXTURE); + parent->Init(ui::Layer::LAYER_NOT_DRAWN); parent->SetBounds(gfx::Rect(0, 0, 1024, 800)); scoped_ptr<Widget> widget(new Widget()); NativeWidgetAura* window = Init(parent.get(), widget.get()); @@ -64,7 +64,7 @@ TEST_F(NativeWidgetAuraTest, CenterWindowLargeParent) { TEST_F(NativeWidgetAuraTest, CenterWindowSmallParent) { // Make a parent window smaller than the host represented by rootwindow. scoped_ptr<aura::Window> parent(new aura::Window(NULL)); - parent->Init(ui::Layer::LAYER_HAS_NO_TEXTURE); + parent->Init(ui::Layer::LAYER_NOT_DRAWN); parent->SetBounds(gfx::Rect(0, 0, 480, 320)); scoped_ptr<Widget> widget(new Widget()); NativeWidgetAura* window = Init(parent.get(), widget.get()); |