Home
last modified time | relevance | path

Searched refs:sk_malloc_throw (Results 1 – 25 of 49) sorted by relevance

12

/third_party/skia/src/core/
DSkAutoMalloc.h26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {}
53 fPtr.reset(size ? sk_malloc_throw(size) : nullptr);
148 fPtr = sk_malloc_throw(size);
DSkMalloc.cpp12 void* sk_malloc_throw(size_t count, size_t elemSize) { in sk_malloc_throw() function
13 return sk_malloc_throw(SkSafeMath::Mul(count, elemSize)); in sk_malloc_throw()
DSkDataTable.cpp99 void* buffer = sk_malloc_throw(bufferSize); in MakeCopyArrays()
119 void* buffer = sk_malloc_throw(bufferSize); in MakeCopyArray()
DSkTSearch.cpp95 lc = (char*)sk_malloc_throw(len + 1); in SkAutoAsciiToLC()
DSkBlitter_RGB565.cpp90 fBuffer = (SkPMColor*)sk_malloc_throw(device.width() * (sizeof(SkPMColor))); in SkRGB565_Shader_Blitter()
DSkFontStream.cpp129 fDir = reinterpret_cast<SkSFNTDirEntry*>(sk_malloc_throw(size)); in init()
DSkRegionPriv.h91 RunHead* head = (RunHead*)sk_malloc_throw(size); in Alloc()
/third_party/skia/include/private/
DSkTemplates.h172 fArray = (T*) sk_malloc_throw(count, sizeof(T)); in reset()
248 : fPtr(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr) {} in SkAutoTMalloc()
260 fPtr.reset(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr);
299 fPtr = (T*)sk_malloc_throw(count, sizeof(T)); in SkAutoSTMalloc()
324 fPtr = (T*)sk_malloc_throw(count, sizeof(T)); in reset()
359 fPtr = (T*)sk_malloc_throw(count, sizeof(T)); in realloc()
DSkMalloc.h58 static inline void* sk_malloc_throw(size_t size) { in sk_malloc_throw() function
78 SK_API extern void* sk_malloc_throw(size_t count, size_t elemSize);
DSkTArray.h470 fItemArray = (T*)sk_malloc_throw((size_t)fAllocCount, sizeof(T)); in init()
485 fItemArray = (T*)sk_malloc_throw(fAllocCount, sizeof(T)); in initWithPreallocatedStorage()
569 T* newItemArray = (T*)sk_malloc_throw((size_t)fAllocCount, sizeof(T)); in checkRealloc()
/third_party/skia/tests/
DOverAlignedTest.cpp18 void* p = sk_malloc_throw(rand.nextRangeU(0,100)); in DEF_TEST()
DCachedDataTest.cpp43 return new SkCachedData(sk_malloc_throw(size), size); in make_data()
DNdkEncodeTest.cpp150 void* pixels = sk_malloc_throw(1024); in DEF_TEST()
217 void* pixels = sk_malloc_throw(info.computeByteSize(rowBytes)); in DEF_TEST()
/third_party/skia/src/codec/
DSkColorTable.cpp16 fColors = reinterpret_cast<SkPMColor*>(sk_malloc_throw(count * sizeof(SkPMColor))); in SkColorTable()
/third_party/skia/src/gpu/mock/
DGrMockBuffer.h26 fMapPtr = sk_malloc_throw(this->size()); in onMap()
/third_party/skia/docs/examples/
DSurface_MakeRasterDirectReleaseProc.cpp16 void* pixels = sk_malloc_throw(info.computeByteSize(rowBytes)); in draw()
/third_party/skia/src/gpu/
DGrEagerVertexAllocator.cpp42 fVertices = sk_malloc_throw(eagerCount * stride); in lock()
/third_party/skia/src/utils/
DSkCanvasStateUtils.cpp158 state->clipRects = (ClipRect*)sk_malloc_throw(sizeof(ClipRect)); in setup_MC_state()
223 canvasState->layers = (SkCanvasLayerState*) sk_malloc_throw(layerWriter.bytesWritten()); in CaptureCanvasState()
/third_party/skia/tools/sk_app/win/
Dmain_win.cpp21 char* str8 = (char*)sk_malloc_throw(size + 1); in tchar_to_utf8()
/third_party/skia/tools/gpu/vk/
DVkTestUtils.cpp373 (VkPhysicalDeviceProtectedMemoryFeatures*)sk_malloc_throw( in setup_features()
384 blend = (VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT*) sk_malloc_throw( in setup_features()
395 ycbcrFeature = (VkPhysicalDeviceSamplerYcbcrConversionFeatures*) sk_malloc_throw( in setup_features()
/third_party/skia/modules/canvaskit/
DWasmCommon.h91 data = static_cast<T*>(sk_malloc_throw(len, sizeof(T))); in JSSpan()
/third_party/skia/src/gpu/ops/
DAALinearizingConvexPathRenderer.cpp221 uint8_t* vertices = (uint8_t*) sk_malloc_throw(maxVertices * vertexStride); in onPrepareDraws()
222 uint16_t* indices = (uint16_t*) sk_malloc_throw(maxIndices * sizeof(uint16_t)); in onPrepareDraws()
/third_party/skia/src/xml/
DSkXMLParser.cpp63 sk_malloc_throw,
/third_party/skia/tools/
DSkMetaData.cpp247 return (Rec*)sk_malloc_throw(size); in Alloc()
/third_party/skia/src/gpu/gradients/
DGrGradientBitmapCache.cpp30 fBuffer = sk_malloc_throw(size); in Entry()

12