diff --git a/libs/hwui/hwui/Bitmap.h b/libs/hwui/hwui/Bitmap.h index a75276fc2d0ec..4f06656e8e6d6 100644 --- a/libs/hwui/hwui/Bitmap.h +++ b/libs/hwui/hwui/Bitmap.h @@ -66,7 +66,7 @@ public: Bitmap(GraphicBuffer* buffer, const SkImageInfo& info); int rowBytesAsPixels() const { - return rowBytes() >> SkColorTypeShiftPerPixel(mInfo.colorType()); + return rowBytes() >> mInfo.shiftPerPixel(); } void reconfigure(const SkImageInfo& info, size_t rowBytes);