diff options
Diffstat (limited to 'tests/BitmapTest.cpp')
-rw-r--r-- | tests/BitmapTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/BitmapTest.cpp b/tests/BitmapTest.cpp index 0d4b785231..e0a7f78d8b 100644 --- a/tests/BitmapTest.cpp +++ b/tests/BitmapTest.cpp @@ -9,6 +9,7 @@ #include "SkMallocPixelRef.h" #include "SkRandom.h" #include "Test.h" +#include "sk_tool_utils.h" static void test_peekpixels(skiatest::Reporter* reporter) { const SkImageInfo info = SkImageInfo::MakeN32Premul(10, 10); @@ -137,7 +138,7 @@ DEF_TEST(Bitmap_getColor_Swizzle, r) { }; for (SkColorType ct : colorTypes) { SkBitmap copy; - if (!source.copyTo(©, ct)) { + if (!sk_tool_utils::copy_to(©, ct, source)) { ERRORF(r, "SkBitmap::copy failed %d", (int)ct); continue; } |