diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper_test.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper_test.cc b/chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper_test.cc index 9f8c025c661..f34ebcb50a5 100644 --- a/chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper_test.cc +++ b/chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper_test.cc @@ -58,7 +58,7 @@ TEST_F(ChunkToLayerMapperTest, OneChunkUsingLayerState) { auto chunk = Chunk(LayerState()); mapper.SwitchToChunk(chunk); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_EQ(FloatClipRect(), mapper.ClipRect()); EXPECT_EQ(IntRect(20, 10, 88, 99), mapper.MapVisualRect(IntRect(30, 30, 88, 99))); @@ -72,7 +72,7 @@ TEST_F(ChunkToLayerMapperTest, TwoChunkUsingLayerState) { mapper.SwitchToChunk(chunk1); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_EQ(FloatClipRect(), mapper.ClipRect()); EXPECT_EQ(IntRect(20, 10, 88, 99), mapper.MapVisualRect(IntRect(30, 30, 88, 99))); @@ -80,7 +80,7 @@ TEST_F(ChunkToLayerMapperTest, TwoChunkUsingLayerState) { mapper.SwitchToChunk(chunk2); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_EQ(FloatClipRect(), mapper.ClipRect()); EXPECT_EQ(IntRect(20, 10, 88, 99), mapper.MapVisualRect(IntRect(30, 30, 88, 99))); @@ -99,7 +99,7 @@ TEST_F(ChunkToLayerMapperTest, TwoChunkSameState) { mapper.SwitchToChunk(chunk1); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - SkMatrix expected_transform = SkMatrix::MakeTrans(-10, -20); + SkMatrix expected_transform = SkMatrix::Translate(-10, -20); expected_transform.preScale(2, 2); EXPECT_EQ(expected_transform, mapper.Transform()); EXPECT_EQ(FloatRect(0, -10, 100, 100), mapper.ClipRect().Rect()); @@ -134,7 +134,7 @@ TEST_F(ChunkToLayerMapperTest, TwoChunkDifferentState) { mapper.SwitchToChunk(chunk1); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - SkMatrix expected_transform = SkMatrix::MakeTrans(-10, -20); + SkMatrix expected_transform = SkMatrix::Translate(-10, -20); expected_transform.preScale(2, 2); EXPECT_EQ(expected_transform, mapper.Transform()); EXPECT_EQ(FloatRect(0, -10, 100, 100), mapper.ClipRect().Rect()); @@ -184,12 +184,12 @@ TEST_F(ChunkToLayerMapperTest, SlowPath) { mapper.SwitchToChunk(chunk1); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_EQ(FloatClipRect(), mapper.ClipRect()); mapper.SwitchToChunk(chunk2); EXPECT_TRUE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_TRUE(mapper.ClipRect().IsInfinite()); EXPECT_EQ(IntRect(-40, -50, 208, 219), mapper.MapVisualRect(IntRect(30, 30, 88, 99))); @@ -197,7 +197,7 @@ TEST_F(ChunkToLayerMapperTest, SlowPath) { mapper.SwitchToChunk(chunk3); EXPECT_TRUE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_TRUE(mapper.ClipRect().IsInfinite()); EXPECT_EQ(IntRect(-40, -50, 208, 219), mapper.MapVisualRect(IntRect(30, 30, 88, 99))); @@ -205,12 +205,12 @@ TEST_F(ChunkToLayerMapperTest, SlowPath) { mapper.SwitchToChunk(chunk4); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_EQ(FloatClipRect(), mapper.ClipRect()); mapper.SwitchToChunk(chunk5); EXPECT_FALSE(HasFilterThatMovesPixels(mapper)); - EXPECT_EQ(SkMatrix::MakeTrans(-10, -20), mapper.Transform()); + EXPECT_EQ(SkMatrix::Translate(-10, -20), mapper.Transform()); EXPECT_EQ(FloatClipRect(), mapper.ClipRect()); } |