| Index: include/core/SkBitmap.h
|
| diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
|
| index a81e03eefa68aaf995cac3d3e38a21058b1b5584..27a00f977e0ecc9f8382acc14975d6d57f9032fa 100644
|
| --- a/include/core/SkBitmap.h
|
| +++ b/include/core/SkBitmap.h
|
| @@ -105,7 +105,7 @@ public:
|
| * Return the shift amount per pixel (i.e. 0 for 1-byte per pixel, 1 for 2-bytes per pixel
|
| * colortypes, 2 for 4-bytes per pixel colortypes). Return 0 for kUnknown_SkColorType.
|
| */
|
| - int shiftPerPixel() const { return this->bytesPerPixel() >> 1; }
|
| + int shiftPerPixel() const { return this->fInfo.shiftPerPixel(); }
|
|
|
| ///////////////////////////////////////////////////////////////////////////
|
|
|
|
|