Pass Bitmap instead of SkBitmap for bitmap rect operation
Test: refactoring cl.
bug:32216791

Change-Id: I66d19194c57b3aa2c400aa87acffc774a533776a
diff --git a/libs/hwui/tests/common/TestUtils.h b/libs/hwui/tests/common/TestUtils.h
index cdfa2f4..b8dfb01 100644
--- a/libs/hwui/tests/common/TestUtils.h
+++ b/libs/hwui/tests/common/TestUtils.h
@@ -125,8 +125,7 @@
     static sk_sp<Bitmap> createBitmap(int width, int height,
             SkColorType colorType = kN32_SkColorType) {
         SkImageInfo info = SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType);
-        size_t size = height * info.minRowBytes();
-        return Bitmap::allocateHeapBitmap(size, info, info.minRowBytes(), nullptr);
+        return Bitmap::allocateHeapBitmap(info);
     }
 
     static sk_sp<Bitmap> createBitmap(int width, int height, SkBitmap* outBitmap) {