aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/DrawBitmapRectTest.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-22 12:48:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-22 12:48:26 -0700
commit871872f3f247f6b699617f6d9ef50ef5da6fbe74 (patch)
tree50358d6f699dd433607d9bc3c29da63e44c5d00f /tests/DrawBitmapRectTest.cpp
parentc1f56b518218d1caa65d6b7101bebf0d28c02a92 (diff)
change old picture serialization to really handle images
Diffstat (limited to 'tests/DrawBitmapRectTest.cpp')
-rw-r--r--tests/DrawBitmapRectTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp
index 80167b7083..e6d46a751d 100644
--- a/tests/DrawBitmapRectTest.cpp
+++ b/tests/DrawBitmapRectTest.cpp
@@ -33,8 +33,8 @@ static void test_faulty_pixelref(skiatest::Reporter* reporter) {
SkAutoTUnref<SkDiscardableMemoryPool> pool(
SkDiscardableMemoryPool::Create(10 * 1000, NULL));
SkBitmap bm;
- bool installSuccess = SkInstallDiscardablePixelRef(SkNEW(FailureImageGenerator), &bm, pool);
- REPORTER_ASSERT(reporter, installSuccess);
+ bool success = SkInstallDiscardablePixelRef(SkNEW(FailureImageGenerator), NULL, &bm, pool);
+ REPORTER_ASSERT(reporter, success);
// now our bitmap has a pixelref, but we know it will fail to lock
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(200, 200));