Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp |
| diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp |
| index 457411c1749dff58aee7c3132538a900ec05b1a6..b995dcb3a70a39a409627e70682cf2e6a9e53d87 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp |
| +++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp |
| @@ -518,6 +518,20 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, TransformCombining) |
| contentLayerAt(1)->transform_tree_index()); |
| } |
| +TEST_F(PaintArtifactCompositorTestWithPropertyTrees, ForeignLayerPassesThrough) |
|
pdr.
2016/07/06 23:23:23
WDYT about extracting this out so PaintArtifactCom
jbroman
2016/07/07 00:18:45
It's rough, because this one isn't that long, and
|
| +{ |
| + scoped_refptr<cc::Layer> layer = cc::Layer::Create(); |
| + |
| + TestPaintArtifact artifact; |
| + artifact.chunk(PaintChunkProperties()) |
| + .foreignLayer(FloatPoint(50, 100), IntSize(400, 300), layer); |
| + update(artifact.build()); |
| + |
| + ASSERT_EQ(1u, contentLayerCount()); |
| + EXPECT_EQ(layer, contentLayerAt(0)); |
| + EXPECT_EQ(gfx::Size(400, 300), layer->bounds()); |
| + EXPECT_EQ(translation(50, 100), layer->screen_space_transform()); |
| +} |
| } // namespace |
| } // namespace blink |