Home
last modified time | relevance | path

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

/external/pdfium/core/src/fxcrt/
Dfx_basic_memmgr_unittest.cpp47 EXPECT_FALSE(FX_TryAlloc(int, kMaxIntAlloc)); in TEST()
56 EXPECT_FALSE(FX_TryAlloc(int, kOverflowIntAlloc)); in TEST()
/external/pdfium/core/include/fxcrt/
Dfx_memory.h67 #define FX_TryAlloc(type, size) (type*)calloc(size, sizeof(type)) macro
/external/pdfium/core/src/fxge/dib/
Dfx_dib_engine.cpp31 m_pWeightTables = FX_TryAlloc(FX_BYTE, (dest_max - dest_min) * m_ItemSize + 4); in Calc()
205 m_pDestScanline = FX_TryAlloc(FX_BYTE, size); in CStretchEngine()
314 m_pInterBuf = FX_TryAlloc(unsigned char, m_SrcClip.Height() * m_InterPitch); in StartStretchHorz()
321 m_pDestMaskScanline = FX_TryAlloc(unsigned char, size); in StartStretchHorz()
Dfx_dib_convert.cpp999 FX_LPBYTE dest_buf = FX_TryAlloc(FX_BYTE, dest_pitch * m_Height + 4); in ConvertFormat()
Dfx_dib_main.cpp87 m_pBuffer = FX_TryAlloc(FX_BYTE, size); in Create()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpeg.cpp144 dest_buf = FX_TryAlloc(FX_BYTE, dest_buf_length); in _JpegEncode()
148 dest_buf = FX_TryAlloc(FX_BYTE, dest_buf_length); in _JpegEncode()
Dfx_codec.cpp122 …m_pDataCache = (CCodec_ImageDataCache*)FX_TryAlloc(FX_BYTE, sizeof(CCodec_ImageDataCache) + m_Pitc… in DownScale()