From 7726a581626bbb72d6ab294ae1adbad4ca10dfb0 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 22 Jun 2017 10:10:17 -0700 Subject: Add a |gGeneralPartitionAllocator| and use it in the |FX_*Alloc| wrappers. BUG=pdfium:690 Change-Id: I922279e4bdc8b411f47f49798155e8f9118c1396 Reviewed-on: https://pdfium-review.googlesource.com/6552 Commit-Queue: Chris Palmer Reviewed-by: Lei Zhang --- samples/DEPS | 1 + samples/image_diff.cc | 3 +++ 2 files changed, 4 insertions(+) (limited to 'samples') diff --git a/samples/DEPS b/samples/DEPS index fb322dee20..0a426d6e9c 100644 --- a/samples/DEPS +++ b/samples/DEPS @@ -5,4 +5,5 @@ include_rules = [ '+third_party/zlib', '+v8', '+core/fdrm/crypto/fx_crypt.h', + '+core/fxcrt/fx_memory.h', ] diff --git a/samples/image_diff.cc b/samples/image_diff.cc index 70c74c951c..21460f5a62 100644 --- a/samples/image_diff.cc +++ b/samples/image_diff.cc @@ -19,6 +19,7 @@ #include #include +#include "core/fxcrt/fx_memory.h" #include "samples/image_diff_png.h" #include "third_party/base/logging.h" #include "third_party/base/numerics/safe_conversions.h" @@ -312,6 +313,8 @@ int DiffImages(const std::string& file1, } int main(int argc, const char* argv[]) { + FXMEM_InitializePartitionAlloc(); + bool histograms = false; bool produce_diff_image = false; std::string filename1; -- cgit v1.2.3