diff options
Diffstat (limited to 'tests/CodecAnimTest.cpp')
-rw-r--r-- | tests/CodecAnimTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CodecAnimTest.cpp b/tests/CodecAnimTest.cpp index 79e03bdef8..24b9c13ae9 100644 --- a/tests/CodecAnimTest.cpp +++ b/tests/CodecAnimTest.cpp @@ -14,6 +14,7 @@ #include "Resources.h" #include "Test.h" +#include "sk_tool_utils.h" #include <initializer_list> #include <vector> @@ -239,7 +240,8 @@ DEF_TEST(Codec_frames, r) { // First copy the pixels from the cached frame const int requiredFrame = frameInfos[index].fRequiredFrame; if (requiredFrame != SkCodec::kNone) { - const bool success = cachedFrames[requiredFrame].copyTo(bm); + const bool success = sk_tool_utils::copy_to(bm, kN32_SkColorType, + cachedFrames[requiredFrame]); REPORTER_ASSERT(r, success); } } |