Index: tests/MallocPixelRefTest.cpp |
diff --git a/tests/MallocPixelRefTest.cpp b/tests/MallocPixelRefTest.cpp |
index 5c28ac89cb2f6935c41e503765c99b943d9e5534..cf5e054220e3390f68987de8eebd40e54930d64e 100644 |
--- a/tests/MallocPixelRefTest.cpp |
+++ b/tests/MallocPixelRefTest.cpp |
@@ -104,11 +104,10 @@ DEF_TEST(MallocPixelRef, reporter) { |
SkData* dataPtr = data.get(); |
REPORTER_ASSERT(reporter, dataPtr->unique()); |
SkAutoTUnref<SkMallocPixelRef> pr( |
- SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data.get(), 4)); |
+ SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data.get())); |
REPORTER_ASSERT(reporter, !(dataPtr->unique())); |
data.reset(NULL); |
REPORTER_ASSERT(reporter, dataPtr->unique()); |
- REPORTER_ASSERT(reporter, |
- static_cast<const void*>(dataPtr->bytes() + 4) == pr->pixels()); |
+ REPORTER_ASSERT(reporter, dataPtr->data() == pr->pixels()); |
} |
} |