summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/DEPS1
-rw-r--r--samples/image_diff.cc3
2 files changed, 4 insertions, 0 deletions
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 <string>
#include <vector>
+#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;