From f0b56e74485d59465194b21f89fa3bc3a7962ac6 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 13 Jan 2014 20:28:50 +0000 Subject: Revert "Revert of https://codereview.chromium.org/129423002/" fixed new api references in unit tests This reverts commit ffc0058e1fbcbd69617e1f41b2dce5b5765ff99e. BUG= Review URL: https://codereview.chromium.org/132643007 git-svn-id: http://skia.googlecode.com/svn/trunk@13057 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/MallocPixelRefTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/MallocPixelRefTest.cpp') diff --git a/tests/MallocPixelRefTest.cpp b/tests/MallocPixelRefTest.cpp index e169763dad..4f14f601cb 100644 --- a/tests/MallocPixelRefTest.cpp +++ b/tests/MallocPixelRefTest.cpp @@ -23,7 +23,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 pr( SkMallocPixelRef::NewAllocate(info, info.minRowBytes() - 1, NULL)); -- cgit v1.2.3