Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: tests/CodexTest.cpp

Issue 1332053002: Fill incomplete images in SkCodec parent class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/CodexTest.cpp
diff --git a/tests/CodexTest.cpp b/tests/CodexTest.cpp
index 2ea6eda57ec86a899a83f5778b31ddea2b0fada6..784ef12b6ccc69e3dd3f32baf72efaff78692289 100644
--- a/tests/CodexTest.cpp
+++ b/tests/CodexTest.cpp
@@ -157,8 +157,8 @@ static void check(skiatest::Reporter* r,
REPORTER_ASSERT(r, scanlineDecoder->start(info) == SkCodec::kSuccess);
for (int y = 0; y < info.height(); y++) {
- result = scanlineDecoder->getScanlines(bm.getAddr(0, y), 1, 0);
- REPORTER_ASSERT(r, result == SkCodec::kSuccess);
+ const uint32_t lines = scanlineDecoder->getScanlines(bm.getAddr(0, y), 1, 0);
+ REPORTER_ASSERT(r, 1 == lines);
}
// verify that scanline decoding gives the same result.
if (SkScanlineDecoder::kTopDown_SkScanlineOrder == scanlineDecoder->getScanlineOrder()) {

Powered by Google App Engine
This is Rietveld 408576698