diff options
author | mtklein <mtklein@chromium.org> | 2014-08-21 13:07:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-21 13:07:27 -0700 |
commit | c92e550d3656abaf83b134b158756b940d58a907 (patch) | |
tree | 60863ff9019859f3ec644bb4a8fd7a188b93609d /tools | |
parent | 8ebdd99bb1c2c1687c9ad8f5344c75070394f23a (diff) |
Install a hook to swap between SkPicture backends with a single define.
BUG=skia:
R=robertphillips@google.com, reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/492023002
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bench_playback.cpp | 2 | ||||
-rw-r--r-- | tools/bench_record.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/bench_playback.cpp b/tools/bench_playback.cpp index a4f3a6a394..f6c3ca4b1c 100644 --- a/tools/bench_playback.cpp +++ b/tools/bench_playback.cpp @@ -45,7 +45,7 @@ static SkPicture* rerecord(const SkPicture& src, bool skr) { SkPictureRecorder recorder; src.draw(skr ? recorder.EXPERIMENTAL_beginRecording(src.width(), src.height(), &factory) - : recorder. beginRecording(src.width(), src.height(), &factory)); + : recorder. DEPRECATED_beginRecording(src.width(), src.height(), &factory)); return recorder.endRecording(); } diff --git a/tools/bench_record.cpp b/tools/bench_record.cpp index 4f928ee6dc..d102250c19 100644 --- a/tools/bench_record.cpp +++ b/tools/bench_record.cpp @@ -66,7 +66,7 @@ static void rerecord(const SkPicture& src, SkBBHFactory* bbhFactory) { if (FLAGS_skr) { src.draw(recorder.EXPERIMENTAL_beginRecording(src.width(), src.height(), bbhFactory)); } else { - src.draw(recorder.beginRecording(src.width(), src.height(), bbhFactory)); + src.draw(recorder. DEPRECATED_beginRecording(src.width(), src.height(), bbhFactory)); } SkAutoTUnref<SkPicture> pic(recorder.endRecording()); } |