aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/MallocPixelRefTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/MallocPixelRefTest.cpp')
-rw-r--r--tests/MallocPixelRefTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/MallocPixelRefTest.cpp b/tests/MallocPixelRefTest.cpp
index bf8f16df5f..5c28ac89cb 100644
--- a/tests/MallocPixelRefTest.cpp
+++ b/tests/MallocPixelRefTest.cpp
@@ -22,7 +22,7 @@ static void set_to_one_proc(void*, void* context) {
*/
DEF_TEST(MallocPixelRef, reporter) {
REPORTER_ASSERT(reporter, true);
- SkImageInfo info = {10, 13, kPMColor_SkColorType, kPremul_SkAlphaType};
+ SkImageInfo info = SkImageInfo::MakeN32Premul(10, 13);
{
SkAutoTUnref<SkMallocPixelRef> pr(
SkMallocPixelRef::NewAllocate(info, info.minRowBytes() - 1, NULL));