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
This commit is contained in:
parent
bc7661161e
commit
10ef79ec95
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user