From 0a36f43d5f710c47b63bc4bbfde9bbb7d59a88d1 Mon Sep 17 00:00:00 2001 From: "scroggo@google.com" Date: Mon, 10 Sep 2012 20:29:13 +0000 Subject: [PATCH] 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 --- tools/bench_pictures_main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 inputs; sk_tools::PictureBenchmark* benchmark = NULL;