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

Unified Diff: tests/RecordReplaceDrawTest.cpp

Issue 551843002: Fix two SkRecord-backed layer hoisting bugs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix unit test Created 6 years, 3 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/gpu/GrRecordReplaceDraw.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RecordReplaceDrawTest.cpp
diff --git a/tests/RecordReplaceDrawTest.cpp b/tests/RecordReplaceDrawTest.cpp
index 23bf9adb5a62100ffe25b548c20dd38331fd141f..693f6681c3b3ffb3fdef4ab0e40ab930b75560dc 100644
--- a/tests/RecordReplaceDrawTest.cpp
+++ b/tests/RecordReplaceDrawTest.cpp
@@ -112,11 +112,14 @@ void test_replacements(skiatest::Reporter* r, bool useBBH) {
SkRecorder canvas(&rerecord, kWidth, kHeight);
GrRecordReplaceDraw(record, &canvas, bbh, &replacements, NULL/*callback*/);
- REPORTER_ASSERT(r, 4 == rerecord.count());
+ REPORTER_ASSERT(r, 7 == rerecord.count());
assert_type<SkRecords::Save>(r, rerecord, 0);
- assert_type<SkRecords::DrawBitmapRectToRect>(r, rerecord, 1);
- assert_type<SkRecords::DrawRect>(r, rerecord, 2);
- assert_type<SkRecords::Restore>(r, rerecord, 3);
+ assert_type<SkRecords::Save>(r, rerecord, 1);
+ assert_type<SkRecords::SetMatrix>(r, rerecord, 2);
+ assert_type<SkRecords::DrawBitmapRectToRect>(r, rerecord, 3);
+ assert_type<SkRecords::Restore>(r, rerecord, 4);
+ assert_type<SkRecords::DrawRect>(r, rerecord, 5);
+ assert_type<SkRecords::Restore>(r, rerecord, 6);
}
DEF_TEST(RecordReplaceDraw_Replace, r) { test_replacements(r, false); }
« no previous file with comments | « src/gpu/GrRecordReplaceDraw.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698