Index: tests/RecordReplaceDrawTest.cpp |
diff --git a/tests/RecordReplaceDrawTest.cpp b/tests/RecordReplaceDrawTest.cpp |
index 5b6d12c0d3dcbfdf20c7de0756f163ad6ae02aec..e93b622cdec92352fd77a6c6beaf8a10e653bf3e 100644 |
--- a/tests/RecordReplaceDrawTest.cpp |
+++ b/tests/RecordReplaceDrawTest.cpp |
@@ -112,13 +112,12 @@ void test_replacements(skiatest::Reporter* r, bool useBBH) { |
canvas->restore(); |
canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth / 2), SkIntToScalar(kHeight / 2)), |
SkPaint()); |
- |
pic.reset(recorder.endRecording()); |
} |
GrReplacements replacements; |
- GrReplacements::ReplacementInfo* ri = replacements.push(); |
- ri->fStart = 0; |
+ GrReplacements::ReplacementInfo* ri = replacements.newReplacement(pic->uniqueID(), |
+ 0, SkMatrix::I()); |
ri->fStop = 2; |
ri->fPos.set(0, 0); |
ri->fImage = make_image(SK_ColorRED); |