Home
last modified time | relevance | path

Searched refs:FX_TryAlloc (Results 1 – 9 of 9) sorted by relevance

/external/pdfium/core/src/fxcrt/
Dfx_basic_memmgr_unittest.cpp46 EXPECT_FALSE(FX_TryAlloc(int, kMaxIntAlloc)); in TEST()
55 EXPECT_FALSE(FX_TryAlloc(int, kOverflowIntAlloc)); in TEST()
/external/pdfium/core/include/fxcrt/
Dfx_memory.h69 #define FX_TryAlloc(type, size) (type*) calloc(size, sizeof(type)) macro
/external/pdfium/core/src/fxge/dib/
Dfx_dib_engine.cpp38 FX_TryAlloc(uint8_t, (dest_max - dest_min) * m_ItemSize + 4); in Calc()
244 m_pDestScanline = FX_TryAlloc(uint8_t, size); in CStretchEngine()
347 m_pInterBuf = FX_TryAlloc(unsigned char, m_SrcClip.Height() * m_InterPitch); in StartStretchHorz()
355 m_pDestMaskScanline = FX_TryAlloc(unsigned char, size); in StartStretchHorz()
Dfx_dib_convert.cpp1169 uint8_t* dest_buf = FX_TryAlloc(uint8_t, dest_pitch * m_Height + 4); in ConvertFormat()
Dfx_dib_main.cpp91 m_pBuffer = FX_TryAlloc(uint8_t, size); in Create()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpeg.cpp158 dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in _JpegEncode()
162 dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in _JpegEncode()
Dfx_codec.cpp50 m_Data.reset(FX_TryAlloc(uint8_t, size.ValueOrDie())); in AllocateCache()
/external/pdfium/core/src/fxcodec/lbmp/
Dfx_bmp.cpp944 dst_buf = FX_TryAlloc(uint8_t, dst_size); in _bmp_encode_image()
/external/pdfium/core/src/fxcodec/lgif/
Dfx_gif.cpp1200 dst_buf = FX_TryAlloc(uint8_t, dst_len); in _gif_write_header()