Home
last modified time | relevance | path

Searched refs:test_layer (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/cc/layers/
Dui_resource_layer_unittest.cc52 scoped_refptr<UIResourceLayer> test_layer = UIResourceLayer::Create(); in TEST_F() local
53 ASSERT_TRUE(test_layer.get()); in TEST_F()
54 test_layer->SetIsDrawable(true); in TEST_F()
55 test_layer->SetBounds(gfx::Size(100, 100)); in TEST_F()
57 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
59 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get()); in TEST_F()
65 test_layer->SavePaintProperties(); in TEST_F()
66 test_layer->Update(&queue, &occlusion_tracker); in TEST_F()
68 EXPECT_FALSE(test_layer->DrawsContent()); in TEST_F()
75 test_layer->SetBitmap(bitmap); in TEST_F()
[all …]
Dnine_patch_layer_unittest.cc51 scoped_refptr<NinePatchLayer> test_layer = NinePatchLayer::Create(); in TEST_F() local
52 ASSERT_TRUE(test_layer.get()); in TEST_F()
53 test_layer->SetIsDrawable(true); in TEST_F()
54 test_layer->SetBounds(gfx::Size(100, 100)); in TEST_F()
56 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
58 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get()); in TEST_F()
62 test_layer->SavePaintProperties(); in TEST_F()
63 test_layer->Update(&queue, &occlusion_tracker); in TEST_F()
65 EXPECT_FALSE(test_layer->DrawsContent()); in TEST_F()
76 test_layer->SetAperture(aperture); in TEST_F()
[all …]
Dcontents_scaling_layer_unittest.cc47 scoped_refptr<MockContentsScalingLayer> test_layer = in TEST() local
51 root->AddChild(test_layer); in TEST()
54 test_layer->SetBounds(gfx::Size(320, 240)); in TEST()
57 EXPECT_FLOAT_EQ(1.f, test_layer->contents_scale_x()); in TEST()
58 EXPECT_FLOAT_EQ(1.f, test_layer->contents_scale_y()); in TEST()
59 EXPECT_EQ(320, test_layer->content_bounds().width()); in TEST()
60 EXPECT_EQ(240, test_layer->content_bounds().height()); in TEST()
63 EXPECT_EQ(640, test_layer->content_bounds().width()); in TEST()
64 EXPECT_EQ(480, test_layer->content_bounds().height()); in TEST()
66 test_layer->SetBounds(gfx::Size(10, 20)); in TEST()
[all …]
Dlayer_unittest.cc146 scoped_refptr<Layer> test_layer = Layer::Create(); in TEST_F() local
147 ASSERT_TRUE(test_layer.get()); in TEST_F()
150 test_layer->SetLayerTreeHost(layer_tree_host_.get()); in TEST_F()
154 test_layer->SetLayerTreeHost(NULL); in TEST_F()
316 scoped_refptr<Layer> test_layer = Layer::Create(); in TEST_F() local
318 test_layer->AddChild(child4); in TEST_F()
319 ASSERT_EQ(1U, test_layer->children().size()); in TEST_F()
320 EXPECT_EQ(child4, test_layer->children()[0]); in TEST_F()
321 EXPECT_EQ(test_layer.get(), child4->parent()); in TEST_F()
334 ASSERT_EQ(0U, test_layer->children().size()); in TEST_F()
[all …]
Dlayer_perftest.cc61 scoped_refptr<Layer> test_layer = Layer::Create(); in TEST_F() local
65 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
77 test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f)); in TEST_F()
78 test_layer->SetAnchorPointZ(anchor_point_z); in TEST_F()
79 test_layer->SetContentsOpaque(contents_opaque); in TEST_F()
80 test_layer->SetDoubleSided(double_sided); in TEST_F()
81 test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree); in TEST_F()
82 test_layer->SetMasksToBounds(masks_to_bounds); in TEST_F()
83 test_layer->SetScrollable(scrollable); in TEST_F()
84 test_layer->PushPropertiesTo(impl_layer.get()); in TEST_F()
[all …]
Dtexture_layer_unittest.cc86 scoped_refptr<TextureLayer> test_layer = TextureLayer::Create(NULL); in TEST_F() local
87 ASSERT_TRUE(test_layer.get()); in TEST_F()
91 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
93 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get()); in TEST_F()
97 test_layer->SetTextureId(1); in TEST_F()
102 test_layer->SetTextureId(2); in TEST_F()
107 test_layer->SetTextureId(0); in TEST_F()
114 scoped_refptr<TextureLayer> test_layer = TextureLayer::Create(NULL); in TEST_F() local
115 ASSERT_TRUE(test_layer.get()); in TEST_F()
122 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
[all …]
/external/chromium_org/cc/trees/
Dlayer_tree_host_common_unittest.cc4604 scoped_ptr<LayerImpl> test_layer = in TEST_F() local
4606 SetLayerPropertiesForTesting(test_layer.get(), in TEST_F()
4615 test_layer->SetContentBounds(gfx::Size(100, 100)); in TEST_F()
4616 test_layer->SetContentsScale(2, 2); in TEST_F()
4618 test_layer->SetDrawsContent(true); in TEST_F()
4619 root->AddChild(test_layer.Pass()); in TEST_F()
4631 LayerImpl* test_layer = root->children()[0]; in TEST_F() local
4633 test_layer->visible_content_rect()); in TEST_F()
5346 scoped_ptr<LayerImpl> test_layer = in TEST_F() local
5348 SetLayerPropertiesForTesting(test_layer.get(), in TEST_F()
[all …]
Dlayer_tree_host_unittest.cc1237 void SetTestLayer(Layer* test_layer) { test_layer_ = test_layer; } in SetTestLayer() argument