xref: /aosp_15_r20/external/pdfium/samples/chromium_support/discardable_memory_allocator.cc (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2023 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "samples/chromium_support/discardable_memory_allocator.h"
6 
7 #include "base/test/test_discardable_memory_allocator.h"
8 
9 namespace chromium_support {
10 
InitializeDiscardableMemoryAllocator()11 void InitializeDiscardableMemoryAllocator() {
12   static base::TestDiscardableMemoryAllocator test_memory_allocator;
13   base::DiscardableMemoryAllocator::SetInstance(&test_memory_allocator);
14 }
15 
16 }  // namespace chromium_support
17