Commit 6c9901b4 authored by enne@chromium.org's avatar enne@chromium.org

cc: Add test for TiledLayerImpl mask with no resource

BUG=165723

Review URL: https://codereview.chromium.org/137853021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245406 0039d316-1c4b-4281-b951-d872f2087c98
parent 24f87d1a
......@@ -304,5 +304,16 @@ TEST_F(TiledLayerImplTest, GPUMemoryUsage) {
EXPECT_EQ(layer->GPUMemoryUsageInBytes(), 0u);
}
TEST_F(TiledLayerImplTest, EmptyMask) {
gfx::Size tile_size(20, 20);
gfx::Size layer_size(0, 0);
scoped_ptr<TiledLayerImpl> layer =
CreateLayer(tile_size, layer_size, LayerTilingData::NO_BORDER_TEXELS);
EXPECT_EQ(0u, layer->ContentsResourceId());
EXPECT_EQ(0, layer->TilingForTesting()->num_tiles_x());
EXPECT_EQ(0, layer->TilingForTesting()->num_tiles_y());
}
} // namespace
} // namespace cc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment