Searched defs:test_layer (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/cc/layers/
H A Dcontents_scaling_layer_unittest.cc48 scoped_refptr<MockContentsScalingLayer> test_layer = local
52 root->AddChild(test_layer);
55 test_layer->SetBounds(gfx::Size(320, 240));
58 EXPECT_FLOAT_EQ(1.f, test_layer->contents_scale_x());
59 EXPECT_FLOAT_EQ(1.f, test_layer->contents_scale_y());
60 EXPECT_EQ(320, test_layer->content_bounds().width());
61 EXPECT_EQ(240, test_layer->content_bounds().height());
64 EXPECT_EQ(640, test_layer->content_bounds().width());
65 EXPECT_EQ(480, test_layer->content_bounds().height());
67 test_layer
[all...]
H A Dnine_patch_layer_unittest.cc50 scoped_refptr<NinePatchLayer> test_layer = NinePatchLayer::Create(); local
51 ASSERT_TRUE(test_layer.get());
52 test_layer->SetIsDrawable(true);
53 test_layer->SetBounds(gfx::Size(100, 100));
55 layer_tree_host_->SetRootLayer(test_layer);
57 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get());
62 test_layer->SavePaintProperties();
63 test_layer->Update(&queue, &occlusion_tracker);
65 EXPECT_FALSE(test_layer->DrawsContent());
72 test_layer
[all...]
H A Dui_resource_layer_unittest.cc51 scoped_refptr<UIResourceLayer> test_layer = UIResourceLayer::Create(); local
52 ASSERT_TRUE(test_layer.get());
53 test_layer->SetIsDrawable(true);
54 test_layer->SetBounds(gfx::Size(100, 100));
56 layer_tree_host_->SetRootLayer(test_layer);
58 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get());
63 test_layer->SavePaintProperties();
64 test_layer->Update(&queue, &occlusion_tracker);
66 EXPECT_FALSE(test_layer->DrawsContent());
72 test_layer
79 scoped_refptr<UIResourceLayer> test_layer = UIResourceLayer::Create(); local
[all...]
H A Dlayer_perftest.cc62 scoped_refptr<Layer> test_layer = Layer::Create(); local
66 layer_tree_host_->SetRootLayer(test_layer);
78 test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f));
79 test_layer->SetTransformOrigin(gfx::Point3F(0.f, 0.f, transform_origin_z));
80 test_layer->SetContentsOpaque(contents_opaque);
81 test_layer->SetDoubleSided(double_sided);
82 test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree);
83 test_layer->SetMasksToBounds(masks_to_bounds);
84 test_layer->SetScrollClipLayerId(scrollable ? test_layer
[all...]
H A Dlayer_unittest.cc146 scoped_refptr<Layer> test_layer = Layer::Create(); local
147 ASSERT_TRUE(test_layer.get());
150 test_layer->SetLayerTreeHost(layer_tree_host_.get());
154 test_layer->SetLayerTreeHost(NULL);
315 // create another simple tree with test_layer and child4.
316 scoped_refptr<Layer> test_layer = Layer::Create(); local
318 test_layer->AddChild(child4);
319 ASSERT_EQ(1U, test_layer->children().size());
320 EXPECT_EQ(child4, test_layer->children()[0]);
321 EXPECT_EQ(test_layer
532 scoped_refptr<Layer> test_layer = Layer::Create(); local
586 scoped_refptr<Layer> test_layer = Layer::Create(); local
645 scoped_refptr<Layer> test_layer = Layer::Create(); local
674 scoped_refptr<Layer> test_layer = Layer::Create(); local
693 scoped_refptr<Layer> test_layer = Layer::Create(); local
711 scoped_refptr<Layer> test_layer = Layer::Create(); local
752 scoped_refptr<Layer> test_layer = Layer::Create(); local
792 scoped_refptr<Layer> test_layer = Layer::Create(); local
[all...]
H A Dtexture_layer_unittest.cc199 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
200 EXPECT_SET_NEEDS_COMMIT(1, layer_tree_host_->SetRootLayer(test_layer));
204 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetFlipped(false));
205 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetUV(
207 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetVertexOpacity(
209 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPremultipliedAlpha(false));
210 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBlendBackgroundColor(true));
242 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox( local
244 test_layer->SetIsDrawable(true);
246 layer_tree_host_->SetRootLayer(test_layer);
313 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
374 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
457 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
512 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
568 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
624 scoped_refptr<TextureLayer> test_layer = TextureLayer::CreateForMailbox(NULL); local
[all...]
/external/chromium_org/cc/trees/
H A Dlayer_tree_impl_unittest.cc440 scoped_ptr<LayerImpl> test_layer = local
442 SetLayerPropertiesForTesting(test_layer.get(),
451 test_layer->SetContentBounds(gfx::Size(100, 100));
452 test_layer->SetContentsScale(2, 2);
454 test_layer->SetDrawsContent(true);
455 root->AddChild(test_layer.Pass());
463 // The visible content rect for test_layer is actually 100x100, even though
465 LayerImpl* test_layer = local
467 EXPECT_RECT_EQ(gfx::Rect(0, 0, 100, 100), test_layer->visible_content_rect());
1673 scoped_ptr<LayerImpl> test_layer local
1699 LayerImpl* test_layer = local
1777 scoped_ptr<LayerImpl> test_layer = local
1808 LayerImpl* test_layer = local
[all...]
H A Dlayer_tree_host_unittest.cc942 void SetTestLayer(Layer* test_layer) { test_layer_ = test_layer; } argument

Completed in 152 milliseconds