Home | History | Annotate | Download | only in layers

Lines Matching defs:layer

35   scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
36 layer->SetBounds(gfx::Size(10, 10));
40 host->SetRootLayer(layer);
41 layer->SetIsDrawable(true);
42 layer->SavePaintProperties();
44 OcclusionTracker<Layer> occlusion(gfx::Rect(0, 0, 1000, 1000));
46 layer->Update(queue.get(), &occlusion);
48 layer->SetBounds(gfx::Size(0, 0));
49 layer->SavePaintProperties();
51 // a layer with empty bounds.
64 layer->PushPropertiesTo(layer_impl.get());
74 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
75 PicturePile* pile = layer->GetPicturePileForTesting();
77 // Layer is suitable for gpu rasterization by default.
79 EXPECT_TRUE(layer->IsSuitableForGpuRasterization());
84 EXPECT_FALSE(layer->IsSuitableForGpuRasterization());
89 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
95 host->SetRootLayer(layer);
96 EXPECT_EQ(Picture::RECORD_NORMALLY, layer->RecordingMode());
100 host->SetRootLayer(layer);
101 EXPECT_EQ(Picture::RECORD_WITH_SKRECORD, layer->RecordingMode());