bench_record: No need for --flags if there are no RecordingFlags anymore.

BUG=skia:
R=robertphillips@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/327533002
This commit is contained in:
mtklein 2014-06-09 08:04:15 -07:00 committed by Commit bot
parent 4cbf8e3dce
commit 00dfb9ea7b

View File

@ -25,7 +25,6 @@ __SK_FORCE_IMAGE_DECODER_LINKING;
DEFINE_string2(skps, r, "skps", "Directory containing SKPs to read and re-record."); DEFINE_string2(skps, r, "skps", "Directory containing SKPs to read and re-record.");
DEFINE_int32(loops, 900, "Number of times to re-record each SKP."); DEFINE_int32(loops, 900, "Number of times to re-record each SKP.");
DEFINE_int32(flags, 0, "RecordingFlags to use.");
DEFINE_bool(endRecording, true, "If false, don't time SkPicture::endRecording()"); DEFINE_bool(endRecording, true, "If false, don't time SkPicture::endRecording()");
DEFINE_int32(nullSize, 1000, "Pretend dimension of null source picture."); DEFINE_int32(nullSize, 1000, "Pretend dimension of null source picture.");
DEFINE_int32(tileGridSize, 512, "Set the tile grid size. Has no effect if bbh is not set to tilegrid."); DEFINE_int32(tileGridSize, 512, "Set the tile grid size. Has no effect if bbh is not set to tilegrid.");
@ -78,7 +77,7 @@ static void bench_record(SkPicture* src, const char* name, SkBBHFactory* bbhFact
SkDELETE(recording.releasePlayback()); SkDELETE(recording.releasePlayback());
} else { } else {
SkPictureRecorder recorder; SkPictureRecorder recorder;
SkCanvas* canvas = recorder.beginRecording(width, height, bbhFactory, FLAGS_flags); SkCanvas* canvas = recorder.beginRecording(width, height, bbhFactory);
if (NULL != src) { if (NULL != src) {
src->draw(canvas); src->draw(canvas);
} }