aboutsummaryrefslogtreecommitdiff
path: root/tests/CodecPartialTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CodecPartialTest.cpp')
-rw-r--r--tests/CodecPartialTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/CodecPartialTest.cpp b/tests/CodecPartialTest.cpp
index e29037dd14..93e5d63f22 100644
--- a/tests/CodecPartialTest.cpp
+++ b/tests/CodecPartialTest.cpp
@@ -247,6 +247,9 @@ DEF_TEST(Codec_partialAnim, r) {
const size_t secondHalf = fullFrameBytes - firstHalf;
haltingStream->addNewData(firstHalf);
+ auto frameInfo = partialCodec->getFrameInfo();
+ REPORTER_ASSERT(r, frameInfo.size() == i + 1);
+ REPORTER_ASSERT(r, !frameInfo[i].fFullyReceived);
SkBitmap frame;
frame.allocPixels(info);
@@ -268,6 +271,10 @@ DEF_TEST(Codec_partialAnim, r) {
result = partialCodec->incrementalDecode();
REPORTER_ASSERT(r, SkCodec::kSuccess == result);
+ frameInfo = partialCodec->getFrameInfo();
+ REPORTER_ASSERT(r, frameInfo.size() == i + 1);
+ REPORTER_ASSERT(r, frameInfo[i].fFullyReceived);
+
// allocPixels locked the pixels for frame, but frames[i] was copied
// from another bitmap, and did not retain the locked status.
SkAutoLockPixels alp(frames[i]);