Only copy subrect in DistanceFieldGen setup
Bug: chromium:896987 Change-Id: I22fe46964957b3452a84bc04411d11407ff240f9 Reviewed-on: https://skia-review.googlesource.com/c/166681 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
32eb0222d2
commit
c127b9b59a
@ -481,7 +481,7 @@ bool SkGenerateDistanceFieldFromA8Image(unsigned char* distanceField,
|
||||
unsigned char* currDestPtr = copyPtr + width + 2;
|
||||
for (int i = 0; i < height; ++i) {
|
||||
*currDestPtr++ = 0;
|
||||
memcpy(currDestPtr, currSrcScanLine, rowBytes);
|
||||
memcpy(currDestPtr, currSrcScanLine, width);
|
||||
currSrcScanLine += rowBytes;
|
||||
currDestPtr += width;
|
||||
*currDestPtr++ = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user