diff options
Diffstat (limited to 'skia/ext/image_operations_unittest.cc')
-rw-r--r-- | skia/ext/image_operations_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/skia/ext/image_operations_unittest.cc b/skia/ext/image_operations_unittest.cc index e6ecda9..1a32bfd 100644 --- a/skia/ext/image_operations_unittest.cc +++ b/skia/ext/image_operations_unittest.cc @@ -67,8 +67,8 @@ TEST(ImageOperations, Halve) { FillDataToBitmap(src_w, src_h, &src); // Do a halving of the full bitmap. - SkBitmap actual_results = gfx::ImageOperations::Resize( - src, gfx::ImageOperations::RESIZE_BOX, gfx::Size(src_w / 2, src_h / 2)); + SkBitmap actual_results = skia::ImageOperations::Resize( + src, skia::ImageOperations::RESIZE_BOX, src_w / 2, src_h / 2); ASSERT_EQ(src_w / 2, actual_results.width()); ASSERT_EQ(src_h / 2, actual_results.height()); @@ -96,17 +96,17 @@ TEST(ImageOperations, HalveSubset) { FillDataToBitmap(src_w, src_h, &src); // Do a halving of the full bitmap. - SkBitmap full_results = gfx::ImageOperations::Resize( - src, gfx::ImageOperations::RESIZE_BOX, gfx::Size(src_w / 2, src_h / 2)); + SkBitmap full_results = skia::ImageOperations::Resize( + src, skia::ImageOperations::RESIZE_BOX, src_w / 2, src_h / 2); ASSERT_EQ(src_w / 2, full_results.width()); ASSERT_EQ(src_h / 2, full_results.height()); // Now do a halving of a a subset, recall the destination subset is in the // destination coordinate system (max = half of the original image size). gfx::Rect subset_rect(2, 3, 3, 6); - SkBitmap subset_results = gfx::ImageOperations::Resize( - src, gfx::ImageOperations::RESIZE_BOX, - gfx::Size(src_w / 2, src_h / 2), subset_rect); + SkBitmap subset_results = skia::ImageOperations::Resize( + src, skia::ImageOperations::RESIZE_BOX, + src_w / 2, src_h / 2, subset_rect); ASSERT_EQ(subset_rect.width(), subset_results.width()); ASSERT_EQ(subset_rect.height(), subset_results.height()); |