From 937c6940809cfc931e5ca8d1400ac5fda9340e20 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 8 Feb 2018 11:36:49 -0500 Subject: [PATCH] SkColorTypeShiftPerPixel is deprecated Test: make Change-Id: Ib55e1d8d0bd173be0d5afa70b40fa0d867e20fd1 --- libs/hwui/hwui/Bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);