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

Unified Diff: bench/subset/SubsetZoomBench.cpp

Issue 1332053002: Fill incomplete images in SkCodec parent class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use aligned memory in swizzler test Created 5 years, 2 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
« no previous file with comments | « bench/subset/SubsetTranslateBench.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/subset/SubsetZoomBench.cpp
diff --git a/bench/subset/SubsetZoomBench.cpp b/bench/subset/SubsetZoomBench.cpp
index 901fbb6082c4b83dc776228d6db33cafb7708378..3edc17f1cb03064d253630d6207313cb2f7c3843 100644
--- a/bench/subset/SubsetZoomBench.cpp
+++ b/bench/subset/SubsetZoomBench.cpp
@@ -88,14 +88,14 @@ void SubsetZoomBench::onDraw(int n, SkCanvas* canvas) {
uint32_t bpp = info.bytesPerPixel();
- SkDEBUGCODE(result = ) codec->skipScanlines(subsetStartY);
- SkASSERT(SkCodec::kSuccess == result);
+ SkDEBUGCODE(int lines = ) codec->skipScanlines(subsetStartY);
+ SkASSERT(subsetStartY == lines);
switch (codec->getScanlineOrder()) {
case SkCodec::kTopDown_SkScanlineOrder:
for (int y = 0; y < subsetHeight; y++) {
- SkDEBUGCODE(result = ) codec->getScanlines(row.get(), 1, 0);
- SkASSERT(SkCodec::kSuccess == result);
+ SkDEBUGCODE(lines = ) codec->getScanlines(row.get(), 1, 0);
+ SkASSERT(1 == lines);
memcpy(bitmap.getAddr(0, y), row.get() + subsetStartX * bpp,
subsetWidth * bpp);
@@ -108,9 +108,9 @@ void SubsetZoomBench::onDraw(int n, SkCanvas* canvas) {
SkBitmap stripeBm;
alloc_pixels(&stripeBm, stripeInfo, colors, colorCount);
- SkDEBUGCODE(result = ) codec->getScanlines(stripeBm.getPixels(),
+ SkDEBUGCODE(lines = ) codec->getScanlines(stripeBm.getPixels(),
subsetHeight, stripeBm.rowBytes());
- SkASSERT(SkCodec::kSuccess == result);
+ SkASSERT(subsetHeight == lines);
for (int y = 0; y < subsetHeight; y++) {
memcpy(bitmap.getAddr(0, y),
« no previous file with comments | « bench/subset/SubsetTranslateBench.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698