diff options
author | John Abd-El-Malek <jam@chromium.org> | 2015-02-10 09:15:12 -0800 |
---|---|---|
committer | John Abd-El-Malek <jam@chromium.org> | 2015-02-10 09:15:12 -0800 |
commit | b045ed21ec797b5d05a6cef819451b0e8bfdee47 (patch) | |
tree | 014af0644ce1e673619ac83cc06c75da4af6556e /samples/pdfium_test.cc | |
parent | 29e20e9d9c42122620b488340d4e78dfed6b0d34 (diff) | |
download | pdfium-b045ed21ec797b5d05a6cef819451b0e8bfdee47.tar.xz |
Merge https://codereview.chromium.org/897973002/ and https://codereview.chromium.org/902753002/ to XFA branch
R=jochen@chromium.org
Review URL: https://codereview.chromium.org/887073005
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r-- | samples/pdfium_test.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index a813c9c0b3..4f6e832e0c 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -20,8 +20,10 @@ #include "../fpdfsdk/include/fpdftext.h" #include "../fpdfsdk/include/fpdfview.h" #include "../core/include/fxcrt/fx_system.h" -#include "v8/include/v8.h" #include "image_diff_png.h" +#include "v8/include/v8.h" +#include "v8/include/libplatform/libplatform.h" + #ifdef _WIN32 #define snprintf _snprintf @@ -573,6 +575,9 @@ int main(int argc, const char* argv[]) { } v8::V8::InitializeICU(); + v8::Platform* platform = v8::platform::CreateDefaultPlatform(); + v8::V8::InitializePlatform(platform); + v8::V8::Initialize(); #ifdef V8_USE_EXTERNAL_STARTUP_DATA v8::StartupData natives; @@ -606,6 +611,8 @@ int main(int argc, const char* argv[]) { } FPDF_DestroyLibrary(); + v8::V8::ShutdownPlatform(); + delete platform; return 0; } |