Home
last modified time | relevance | path

Searched refs:old_layer (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/ui/compositor/
Dlayer_owner.cc31 scoped_ptr<ui::Layer> old_layer(AcquireLayer()); in RecreateLayer() local
32 if (!old_layer) in RecreateLayer()
33 return old_layer.Pass(); in RecreateLayer()
35 LayerDelegate* old_delegate = old_layer->delegate(); in RecreateLayer()
36 old_layer->set_delegate(NULL); in RecreateLayer()
38 const gfx::Rect layer_bounds(old_layer->bounds()); in RecreateLayer()
39 Layer* new_layer = new ui::Layer(old_layer->type()); in RecreateLayer()
41 new_layer->SetVisible(old_layer->GetTargetVisibility()); in RecreateLayer()
42 new_layer->SetOpacity(old_layer->GetTargetOpacity()); in RecreateLayer()
44 new_layer->SetMasksToBounds(old_layer->GetMasksToBounds()); in RecreateLayer()
[all …]
Dlayer_owner_delegate.h19 virtual void OnLayerRecreated(Layer* old_layer, Layer* new_layer) = 0;
Dlayer_owner_unittest.cc28 scoped_ptr<Layer> old_layer(owner.RecreateLayer()); in TEST() local
/external/chromium_org/content/renderer/pepper/
Dpepper_compositor_host.cc37 const ppapi::CompositorLayerData* old_layer, in VerifyCommittedLayer() argument
45 if (old_layer && !old_layer->color) in VerifyCommittedLayer()
51 if (old_layer) { in VerifyCommittedLayer()
56 if (new_layer->common.resource_id == old_layer->common.resource_id) { in VerifyCommittedLayer()
57 if (new_layer->texture->mailbox != old_layer->texture->mailbox) in VerifyCommittedLayer()
68 if (old_layer) { in VerifyCommittedLayer()
74 if (new_layer->common.resource_id == old_layer->common.resource_id) { in VerifyCommittedLayer()
75 if (new_layer->image->resource != old_layer->image->resource) in VerifyCommittedLayer()
199 const ppapi::CompositorLayerData* old_layer, in UpdateLayer() argument
252 if (!old_layer || in UpdateLayer()
[all …]
Dpepper_compositor_host.h56 const ppapi::CompositorLayerData* old_layer,
/external/chromium_org/ash/wm/
Dwindow_animations_unittest.cc120 Layer* old_layer = window->layer(); in TEST_F() local
121 EXPECT_EQ(1.0f, old_layer->GetTargetOpacity()); in TEST_F()
127 EXPECT_NE(old_layer, window->layer()); in TEST_F()
129 EXPECT_EQ(1.0f, old_layer->GetTargetOpacity()); in TEST_F()
130 EXPECT_EQ("5,10 320x240", old_layer->bounds().ToString()); in TEST_F()
134 EXPECT_EQ(grow_transform, old_layer->GetTargetTransform()); in TEST_F()
140 old_layer->GetAnimator()->Step(base::TimeTicks::Now() + in TEST_F()
146 old_layer = window->layer(); in TEST_F()
150 EXPECT_NE(old_layer, window->layer()); in TEST_F()
152 EXPECT_EQ(0.0f, old_layer->GetTargetOpacity()); in TEST_F()
[all …]
Dwindow_state.cc421 ui::Layer* old_layer = old_layer_owner->root(); in SetBoundsDirectCrossFade() local
422 DCHECK(old_layer); in SetBoundsDirectCrossFade()
431 old_layer->parent()->StackBelow(new_layer, old_layer); in SetBoundsDirectCrossFade()
433 old_layer->parent()->StackAbove(new_layer, old_layer); in SetBoundsDirectCrossFade()
Dwindow_animations.cc339 ui::Layer* old_layer = old_layer_owner->root(); in CrossFadeAnimation() local
340 old_layer->GetAnimator()->StopAnimating(); in CrossFadeAnimation()
341 ui::ScopedLayerAnimationSettings settings(old_layer->GetAnimator()); in CrossFadeAnimation()
355 old_layer->SetTransform(out_transform); in CrossFadeAnimation()
359 old_layer->SetOpacity(kWindowAnimation_HideOpacity); in CrossFadeAnimation()
362 old_layer = NULL; in CrossFadeAnimation()
/external/chromium_org/ui/wm/core/
Dwindow_util.cc26 ui::Layer* old_layer = owner ? owner->RecreateLayer().release() : NULL; in CloneChildren() local
27 if (old_layer) { in CloneChildren()
28 parent->Add(old_layer); in CloneChildren()
31 CloneChildren(owner->layer(), old_layer); in CloneChildren()
85 scoped_ptr<ui::LayerTreeOwner> old_layer( in RecreateLayers() local
87 if (old_layer->root()) in RecreateLayers()
88 CloneChildren(root->layer(), old_layer->root()); in RecreateLayers()
89 return old_layer.Pass(); in RecreateLayers()
/external/chromium_org/chrome/browser/ui/views/frame/
Dcontents_web_view.cc66 void ContentsWebView::OnLayerRecreated(ui::Layer* old_layer, in OnLayerRecreated() argument
79 old_layer->Add(cloned_layer_tree_->release()); in OnLayerRecreated()
Dcontents_web_view.h42 virtual void OnLayerRecreated(ui::Layer* old_layer,
/external/chromium_org/content/browser/compositor/
Ddelegated_frame_host.h150 virtual void OnLayerRecreated(ui::Layer* old_layer,
Ddelegated_frame_host.cc840 void DelegatedFrameHost::OnLayerRecreated(ui::Layer* old_layer, in OnLayerRecreated() argument
/external/chromium_org/ui/aura/
Dwindow_unittest.cc1915 scoped_ptr<ui::Layer> old_layer(w.RecreateLayer()); in TEST_F() local
1931 scoped_ptr<ui::Layer> old_layer(w->RecreateLayer()); in TEST_F() local
1937 EXPECT_EQ(old_layer.get(), child_layers[1]); in TEST_F()
/external/chromium_org/ui/views/
Dview_unittest.cc3609 scoped_ptr<ui::Layer> old_layer(v.RecreateLayer()); in TEST_F() local
3612 ASSERT_TRUE(old_layer.get() != NULL); in TEST_F()
3613 EXPECT_TRUE(old_layer->children().empty()); in TEST_F()