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

Unified Diff: src/codec/SkSwizzler.h

Issue 1260673002: SkScaledCodec class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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: src/codec/SkSwizzler.h
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index b00ee14e0699189f9834ccc7624ef8ee8924c0f8..a8ff3ea7977a9d70fce0837dc711bbafebbc2e5d 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -202,6 +202,10 @@ public:
SkASSERT(kDesignateRow_NextMode != fNextMode);
return fDstRow;
}
+ /**
+ * set the sample size in the x direction
scroggo 2015/07/27 15:09:19 Must be >= 1
emmaleer 2015/07/27 18:31:39 Acknowledged.
+ */
+ void setSampleX(int sampleX);
private:
@@ -245,6 +249,8 @@ private:
void* fDstRow;
const size_t fDstRowBytes;
int fCurrY;
+ int fX0; // first X coord to sample. Is constant
scroggo 2015/07/27 15:09:19 These are actually not const - they are modified i
emmaleer 2015/07/27 18:31:38 Acknowledged.
+ int fSampleX; // step between X samples. Is constant
SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc,
const SkImageInfo& info, void* dst, size_t rowBytes);

Powered by Google App Engine
This is Rietveld 408576698