Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

skia: Fix a bug in clampx_nofilter_trans_S16_D32_DX

When scaling a line, in the case of the last pixel needing to be
duplicated, the beginning of the line is getting clobbered with wrong
value.  This is because dest buffer pointer is not moved forward.  Fix
that by adding pointer update line.

CRs-Fixed: 349571

(cherry picked from commit 3c6384c)

Change-Id: I3bc4756a7327579fb5271258612e44a8ae6eda25
  • Loading branch information...
commit 03a7fb3f393a38499e3744ff29a35f2f4ecebd96 1 parent d5af89e
Xin Qi authored committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/core/SkBitmapProcState_sample.h
View
1  src/core/SkBitmapProcState_sample.h
@@ -136,6 +136,7 @@ void clampx_nofilter_trans_S16_D32_DX(const SkBitmapProcState& s,
// *colors++ = RETURNDST(src);
//}
Blit_Pixel16ToPixel32( colors, &(srcAddr[xpos]), n );
+ colors += n;
count -= n;
if (0 == count) {
return;
Please sign in to comment.
Something went wrong with that request. Please try again.