summaryrefslogtreecommitdiff
path: root/libs/hwui/tests/common/TestUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/tests/common/TestUtils.h')
-rw-r--r--libs/hwui/tests/common/TestUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/tests/common/TestUtils.h b/libs/hwui/tests/common/TestUtils.h
index 98d5fb3af09a..f29363131030 100644
--- a/libs/hwui/tests/common/TestUtils.h
+++ b/libs/hwui/tests/common/TestUtils.h
@@ -189,7 +189,7 @@ public:
static sk_sp<Bitmap> createBitmap(int width, int height, SkBitmap* outBitmap) {
SkImageInfo info = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType);
outBitmap->setInfo(info);
- return Bitmap::allocateHeapBitmap(outBitmap, nullptr);
+ return Bitmap::allocateHeapBitmap(outBitmap);
}
static sp<DeferredLayerUpdater> createTextureLayerUpdater(