diff options
author | 2012-09-10 17:19:06 +0000 | |
---|---|---|
committer | 2012-09-10 17:19:06 +0000 | |
commit | 10ef79ec95ac997c0f501df0f60fa54cbae46cf3 (patch) | |
tree | 159a9942732630f984c4be3440002209f0239646 /tools | |
parent | bc7661161e46c2f776fcd8740600599581fbfe26 (diff) |
Fix render_pictures for skia_static_initializers=0
Review URL: https://codereview.appspot.com/6500097
git-svn-id: http://skia.googlecode.com/svn/trunk@5465 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/render_pictures_main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp index 186a214512..ac75707c4f 100644 --- a/tools/render_pictures_main.cpp +++ b/tools/render_pictures_main.cpp @@ -8,6 +8,7 @@ #include "SkBitmap.h" #include "SkCanvas.h" #include "SkDevice.h" +#include "SkGraphics.h" #include "SkMath.h" #include "SkOSFile.h" #include "SkPicture.h" @@ -274,6 +275,7 @@ static void parse_commandline(int argc, char* const argv[], SkTArray<SkString>* } int main(int argc, char* const argv[]) { + SkGraphics::Init(); SkTArray<SkString> inputs; sk_tools::PictureRenderer* renderer = NULL; @@ -286,4 +288,5 @@ int main(int argc, char* const argv[]) { } SkDELETE(renderer); + SkGraphics::Term(); } |