Merge "SkColorTypeShiftPerPixel is deprecated"

This commit is contained in:
TreeHugger Robot
2018-02-09 15:55:34 +00:00
committed by Android (Google) Code Review

View File

@@ -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);