Index: bench/benchmain.cpp |
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp |
index 25c552c5e06565933ae74f68f785a84b9dbd2aa0..42428b44b0674017595c5a39b9db4cfbf91a023d 100644 |
--- a/bench/benchmain.cpp |
+++ b/bench/benchmain.cpp |
@@ -490,9 +490,6 @@ int tool_main(int argc, char** argv) { |
SkPictureRecorder recorderTo; |
const SkIPoint dim = bench->getSize(); |
- const SkPicture::RecordingFlags kRecordFlags = |
- SkPicture::kUsePathBoundsForClip_RecordingFlag; |
- |
SkAutoTUnref<SkSurface> surface; |
if (SkBenchmark::kNonRendering_Backend != config.backend) { |
surface.reset(make_surface(config.fColorType, |
@@ -512,16 +509,13 @@ int tool_main(int argc, char** argv) { |
canvas.reset(SkDeferredCanvas::Create(surface.get())); |
break; |
case kRecord_BenchMode: |
- canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, |
- NULL, kRecordFlags))); |
+ canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY))); |
break; |
case kPictureRecord_BenchMode: { |
SkPictureRecorder recorderFrom; |
- bench->draw(1, recorderFrom.beginRecording(dim.fX, dim.fY, |
- NULL, kRecordFlags)); |
+ bench->draw(1, recorderFrom.beginRecording(dim.fX, dim.fY)); |
recordFrom.reset(recorderFrom.endRecording()); |
- canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY, |
- NULL, kRecordFlags))); |
+ canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY))); |
break; |
} |
case kNormal_BenchMode: |
@@ -587,8 +581,7 @@ int tool_main(int argc, char** argv) { |
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, |
- NULL, kRecordFlags))); |
+ canvas.reset(SkRef(recorderTo.beginRecording(dim.fX, dim.fY))); |
} |
timer.start(); |