| commit | 0a36f43d5f710c47b63bc4bbfde9bbb7d59a88d1 | [log] [tgz] |
|---|---|---|
| author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Sep 10 20:29:13 2012 +0000 |
| committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Sep 10 20:29:13 2012 +0000 |
| tree | 7e0c81582271b5170609a59cf5bb08fb7b822848 | |
| parent | 8d7d052ca4120f8fe89fd129003f6298d3d042d5 [diff] [blame] |
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
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp index b51eaa2..d111716 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 @@ } int main(int argc, char* const argv[]) { + SkAutoGraphics ag; SkTArray<SkString> inputs; sk_tools::PictureBenchmark* benchmark = NULL;