Chromium Code Reviews| 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); |