Home
last modified time | relevance | path

Searched refs:FX_Alloc (Results 1 – 25 of 52) sorted by relevance

123

/external/pdfium/core/fxcrt/
Dfx_memory_unittest.cpp23 uint8_t* ptr = FX_Alloc(uint8_t, 0); in TEST()
24 uint8_t* ptr2 = FX_Alloc(uint8_t, 0); in TEST()
34 EXPECT_DEATH_IF_SUPPORTED((void)FX_Alloc(int, kMaxIntAlloc), ""); in TEST()
36 int* ptr = FX_Alloc(int, 1); in TEST()
46 EXPECT_DEATH_IF_SUPPORTED(ptr = FX_Alloc(int, kOverflowIntAlloc), "") << ptr; in TEST()
48 ptr = FX_Alloc(int, 1); in TEST()
66 int* ptr = FX_Alloc(int, 1); in TEST()
79 ptr = FX_Alloc(int, 1); in TEST()
Dfx_memory_wrappers_unittest.cpp15 std::unique_ptr<int, FxFreeDeleter> thing(FX_Alloc(int, 1)); in TEST()
16 std::unique_ptr<int, FxFreeDeleter> several(FX_Alloc(int, 100)); in TEST()
Dcfx_fixedbufgrow.h19 m_pGrowData.reset(FX_Alloc(DataType, data_size)); in CFX_FixedBufGrow()
Dcfx_binarybuf.cpp68 : FX_Alloc(uint8_t, m_AllocSize)); in ExpandBuf()
Dfx_memory.h35 #define FX_Alloc(type, size) \ macro
Dcfx_memorystream.cpp94 m_data.reset(FX_Alloc(uint8_t, m_nTotalSize)); in WriteBlockAtOffset()
Dfx_random.cpp86 MTContext* pContext = FX_Alloc(MTContext, 1); in FX_Random_MT_Start()
/external/pdfium/third_party/agg23/
Dagg_array.h114 m_array = FX_Alloc(T, full_cap); in capacity()
129 T* data = FX_Alloc(T, new_size); in resize()
139 m_size(0), m_capacity(cap + extra_tail), m_array(FX_Alloc(T, m_capacity)) {} in pod_array()
143 m_array(v.m_capacity ? FX_Alloc(T, v.m_capacity) : 0) in pod_array()
316 m_blocks(v.m_max_blocks ? FX_Alloc(T*, v.m_max_blocks) : 0), in pod_deque()
321 m_blocks[i] = FX_Alloc(T, block_size); in pod_deque()
342 T** new_blocks = FX_Alloc(T*, m_max_blocks + m_block_ptr_inc); in allocate_block()
350 m_blocks[nb] = FX_Alloc(T, block_size); in allocate_block()
472 int8u** new_blocks = FX_Alloc(int8u*, m_max_blocks + m_block_ptr_inc); in allocate_block()
480 m_blocks[m_num_blocks] = m_buf_ptr = FX_Alloc(int8u, size); in allocate_block()
Dagg_scanline_u.h61 m_covers = FX_Alloc( cover_type , max_len); in reset()
62 m_spans = FX_Alloc( span , max_len); in reset()
Dagg_path_storage.cpp70 FX_Alloc( float, block_size * 2 + in allocate_block()
Dagg_rendering_buffer.h75 m_rows = FX_Alloc(int8u*, m_max_height = height); in attach()
/external/pdfium/core/fxcodec/basic/
Dbasicmodule.cpp104 m_pScanline.reset(FX_Alloc(uint8_t, m_Pitch)); in Create()
226 dest_buf->reset(FX_Alloc(uint8_t, *dest_size)); in RunLengthEncode()
242 dest_buf->reset(FX_Alloc(uint8_t, estimated_size.ValueOrDie())); in RunLengthEncode()
322 dest_buf->reset(FX_Alloc(uint8_t, estimated_size.ValueOrDie())); in A85Encode()
/external/pdfium/core/fpdfapi/render/
Dcpdf_docrenderdata_unittest.cpp92 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, len)); in CreateType0FunctionStream()
134 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, len)); in CreateType4FunctionStream()
154 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, len)); in CreateBadType4FunctionStream()
/external/pdfium/core/fxcodec/flate/
Dflatemodule.cpp66 z_stream* p = FX_Alloc(z_stream, 1); in FlateInit()
194 dest_buf_.reset(FX_Alloc(uint8_t, dest_buf_size_)); in Decode()
535 FX_Alloc(uint8_t, guess_size + 1)); in FlateUncompress()
550 cur_buf.reset(FX_Alloc(uint8_t, buf_size + 1)); in FlateUncompress()
566 FX_Alloc(uint8_t, *dest_size)); in FlateUncompress()
626 m_pScanline(FX_Alloc(uint8_t, m_Pitch)) {} in FlateScanlineDecoder()
857 dest_buf->reset(FX_Alloc(uint8_t, *dest_size)); in Encode()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_stream_acc.cpp94 std::unique_ptr<uint8_t, FxFreeDeleter> p(FX_Alloc(uint8_t, m_dwSize)); in DetachData()
166 FX_Alloc(uint8_t, dwSrcSize)); in ReadRawStream()
Dcpdf_crypto_handler.cpp117 AESCryptContext* pContext = FX_Alloc(AESCryptContext, 1); in CryptStart()
141 AESCryptContext* pContext = FX_Alloc(AESCryptContext, 1); in CryptStart()
153 CRYPT_rc4_context* pContext = FX_Alloc(CRYPT_rc4_context, 1); in CryptStart()
393 m_pAESContext.reset(FX_Alloc(CRYPT_aes_context, 1)); in CPDF_CryptoHandler()
Dfpdf_parser_decode.cpp150 dest_buf->reset(FX_Alloc(uint8_t, size.ValueOrDie())); in A85Decode()
210 dest_buf->reset(FX_Alloc(uint8_t, i / 2 + 1)); in HexDecode()
262 dest_buf->reset(FX_Alloc(uint8_t, *dest_size)); in RunLengthDecode()
Dcpdf_object_unittest.cpp74 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len)); in SetUp()
615 FX_Alloc(uint8_t, data_size)); in TEST()
661 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_size)); in TEST()
858 data.reset(FX_Alloc(uint8_t, kBufSize)); in TEST()
867 data.reset(FX_Alloc(uint8_t, kBufSize)); in TEST()
/external/pdfium/core/fxcrt/css/
Dcfx_csstextbuf.cpp46 m_pBuffer = FX_Alloc(wchar_t, iDesiredSize); in ExpandBuf()
/external/pdfium/fpdfsdk/
Dfpdf_sysfontinfo.cpp100 char* buffer = FX_Alloc(char, size); in GetFaceName()
220 FX_Alloc(FPDF_SYSFONTINFO_DEFAULT, 1); in FPDF_GetDefaultSystemFontInfo()
/external/pdfium/core/fxcodec/
Dcfx_codec_memory.cpp10 : buffer_(FX_Alloc(uint8_t, buffer_size)), size_(buffer_size) {} in CFX_CodecMemory()
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec_unittest.cpp213 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len)); in TEST()
250 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, 6)); in TEST()
/external/pdfium/core/fxge/win32/
Dfx_win32_gdipext.cpp432 FX_Alloc(float, FxAlignToBoundary<2>(pGraphState->m_DashArray.size())); in GdipCreatePenImpl()
694 LPBYTE buf = FX_Alloc(BYTE, info_size); in LoadDIBitmap()
702 Gdiplus::BitmapData* pBitmapData = FX_Alloc(Gdiplus::BitmapData, 1); in LoadDIBitmap()
721 PREVIEW3_DIBITMAP* pInfo = FX_Alloc(PREVIEW3_DIBITMAP, 1); in LoadDIBitmap()
830 Gdiplus::PointF* points = FX_Alloc(Gdiplus::PointF, pPoints.size()); in DrawPath()
831 BYTE* types = FX_Alloc(BYTE, pPoints.size()); in DrawPath()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_Context.cpp424 SDINSYMS.reset(FX_Alloc(CJBig2_Image*, pSymbolDictDecoder->SDNUMINSYMS)); in ParseSymbolDict()
638 SBSYMS.reset(FX_Alloc(CJBig2_Image*, pTRD->SBNUMSYMS)); in ParseTextRegion()
779 grContext.reset(FX_Alloc(JBig2ArithCtx, size)); in ParseTextRegion()
832 FX_Alloc(JBig2ArithCtx, size)); in ParsePatternDict()
900 FX_Alloc(JBig2ArithCtx, size)); in ParseHalftoneRegion()
1082 FX_Alloc(JBig2ArithCtx, size)); in ParseGenericRefinementRegion()
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamparser.cpp174 pData.reset(FX_Alloc(uint8_t, dwOrigSize)); in ReadInlineStream()
204 pData.reset(FX_Alloc(uint8_t, dwStreamSize)); in ReadInlineStream()

123