Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2139)

Unified Diff: tests/FlatDataTest.cpp

Issue 21564008: use SkTDynamicHash in picture recording (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: er, actually, the remove i removed was necessary Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/FlatDataTest.cpp
diff --git a/tests/FlatDataTest.cpp b/tests/FlatDataTest.cpp
index be4e7cf8ad8693897bdb6114827be1976b2a1179..79f94b39edc2410f74c2e338c273bdc105216522 100644
--- a/tests/FlatDataTest.cpp
+++ b/tests/FlatDataTest.cpp
@@ -44,10 +44,8 @@ static void testCreate(skiatest::Reporter* reporter, const void* obj,
// No need to delete data because that will be taken care of by the
// controller.
SkFlatData* data1 = SkFlatData::Create(&controller, obj, 0, flattenProc);
- data1->setSentinelInCache();
SkFlatData* data2 = SkFlatData::Create(&controller, obj, 1, flattenProc);
- data2->setSentinelAsCandidate();
- REPORTER_ASSERT(reporter, SkFlatData::Compare(*data1, *data2) == 0);
+ REPORTER_ASSERT(reporter, *data1 == *data2);
}
static void Tests(skiatest::Reporter* reporter) {
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698