Index: bench/benchmain.cpp |
=================================================================== |
--- bench/benchmain.cpp (revision 14237) |
+++ bench/benchmain.cpp (working copy) |
@@ -506,13 +506,16 @@ |
canvas.reset(SkDeferredCanvas::Create(surface.get())); |
break; |
case kRecord_BenchMode: |
- canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, kRecordFlags))); |
+ canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, |
+ NULL, kRecordFlags))); |
break; |
case kPictureRecord_BenchMode: { |
SkPictureRecorder recorderFrom; |
- bench->draw(1, recorderFrom.beginRecording(dim.fX, dim.fY, kRecordFlags)); |
+ bench->draw(1, recorderFrom.beginRecording(dim.fX, dim.fY, |
+ NULL, kRecordFlags)); |
recordFrom.reset(recorderFrom.endRecording()); |
- canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, kRecordFlags))); |
+ canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, |
+ NULL, kRecordFlags))); |
break; |
} |
case kNormal_BenchMode: |
@@ -578,7 +581,8 @@ |
if ((benchMode == kRecord_BenchMode || benchMode == kPictureRecord_BenchMode)) { |
// Clear the recorded commands so that they do not accumulate. |
- canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, kRecordFlags))); |
+ canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, |
+ NULL, kRecordFlags))); |
} |
timer.start(); |