diff options
author | 2012-09-10 20:29:13 +0000 | |
---|---|---|
committer | 2012-09-10 20:29:13 +0000 | |
commit | 0a36f43d5f710c47b63bc4bbfde9bbb7d59a88d1 (patch) | |
tree | 7e0c81582271b5170609a59cf5bb08fb7b822848 /tools | |
parent | 8d7d052ca4120f8fe89fd129003f6298d3d042d5 (diff) |
Init graphics in bench_pictures.
Should fix http://code.google.com/p/skia/issues/detail?id=858
Review URL: https://codereview.appspot.com/6490100
git-svn-id: http://skia.googlecode.com/svn/trunk@5475 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bench_pictures_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp index b51eaa20d1..d1117164e9 100644 --- a/tools/bench_pictures_main.cpp +++ b/tools/bench_pictures_main.cpp @@ -9,6 +9,7 @@ #include "PictureBenchmark.h" #include "SkBenchLogger.h" #include "SkCanvas.h" +#include "SkGraphics.h" #include "SkMath.h" #include "SkOSFile.h" #include "SkPicture.h" @@ -345,6 +346,7 @@ static void process_input(const SkString& input, sk_tools::PictureBenchmark& ben } int main(int argc, char* const argv[]) { + SkAutoGraphics ag; SkTArray<SkString> inputs; sk_tools::PictureBenchmark* benchmark = NULL; |