From 086a427b0cee3862f25c492fc5082ff24105dc53 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Tue, 18 Jul 2017 10:53:11 -0400 Subject: guard references to SkColorTable Bug: skia:6828 Change-Id: I0c8c78e70b118f51cb59dc45675e4ddcd4776108 Reviewed-on: https://skia-review.googlesource.com/24260 Commit-Queue: Mike Reed Reviewed-by: Leon Scroggins --- tests/WritePixelsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/WritePixelsTest.cpp') diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp index e26e134b2d..3aec3e68da 100644 --- a/tests/WritePixelsTest.cpp +++ b/tests/WritePixelsTest.cpp @@ -264,7 +264,7 @@ static bool alloc_row_bytes(SkBitmap* bm, const SkImageInfo& info, size_t rowByt if (!bm->setInfo(info, rowBytes)) { return false; } - sk_sp pr = SkMallocPixelRef::MakeAllocate(info, rowBytes, nullptr); + sk_sp pr = SkMallocPixelRef::MakeAllocate(info, rowBytes); bm->setPixelRef(std::move(pr), 0, 0); return true; } -- cgit v1.2.3