Index: tests/XfermodeTest.cpp |
diff --git a/tests/XfermodeTest.cpp b/tests/XfermodeTest.cpp |
index 7ac12fb089597671b4ec5c9547c6fa81ac48aa3e..4afa522de7af06aefc7b92f63e1a1e36aab57f6a 100644 |
--- a/tests/XfermodeTest.cpp |
+++ b/tests/XfermodeTest.cpp |
@@ -37,7 +37,7 @@ static void test_asMode(skiatest::Reporter* reporter) { |
} |
} |
- SkXfermode* bogusXfer = new SkProcXfermode(bogusXfermodeProc); |
+ SkXfermode* bogusXfer = SkProcXfermode::Create(bogusXfermodeProc); |
SkXfermode::Mode reportedMode = ILLEGAL_MODE; |
REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode)); |
REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE); |