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
This commit is contained in:
scroggo@google.com 2012-09-10 20:29:13 +00:00
parent 8d7d052ca4
commit 0a36f43d5f

View File

@ -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;