| Index: src/core/SkConfig8888.h
|
| diff --git a/src/core/SkConfig8888.h b/src/core/SkConfig8888.h
|
| index 274e3e57c2b37aa009aa425256224023a4b6ff8f..954f2b53874f9e194097561bd6e291ee1bf7793b 100644
|
| --- a/src/core/SkConfig8888.h
|
| +++ b/src/core/SkConfig8888.h
|
| @@ -34,4 +34,15 @@ struct SkSrcPixelInfo : SkPixelInfo {
|
| bool convertPixelsTo(SkDstPixelInfo* dst, int width, int height) const;
|
| };
|
|
|
| +static inline void SkRectMemcpy(void* dst, size_t dstRB, const void* src, size_t srcRB,
|
| + size_t bytesPerRow, int rowCount) {
|
| + SkASSERT(bytesPerRow <= srcRB);
|
| + SkASSERT(bytesPerRow <= dstRB);
|
| + for (int i = 0; i < rowCount; ++i) {
|
| + memcpy(dst, src, bytesPerRow);
|
| + dst = (char*)dst + dstRB;
|
| + src = (const char*)src + srcRB;
|
| + }
|
| +}
|
| +
|
| #endif
|
|
|