Searched refs:SkAutoMalloc (Results 1 – 25 of 68) sorted by relevance
123
23 class SkAutoMalloc : SkNoncopyable {25 explicit SkAutoMalloc(size_t size = 0)81 #define SkAutoMalloc(...) SK_REQUIRE_LOCAL_VAR(SkAutoMalloc) macro133 SkAutoMalloc::OnShrink shrink = SkAutoMalloc::kAlloc_OnShrink,136 bool alloc = size != fSize && (SkAutoMalloc::kAlloc_OnShrink == shrink || size > fSize);
137 return fBlitMemory.reset(sz, SkAutoMalloc::kReuse_OnShrink); in allocBlitMemory()165 SkAutoMalloc fBlitMemory;
54 SkAutoMalloc memory(size); in DEF_TEST()75 SkAutoMalloc memory(size); in DEF_TEST()89 SkAutoMalloc memory(size); in DEF_TEST()
206 SkAutoMalloc peekStorage(bytesToPeek); in compare_peek_to_read()207 SkAutoMalloc readStorage(bytesToPeek); in compare_peek_to_read()263 SkAutoMalloc peekStorage(bytesToPeek); in test_peeking_front_buffered_stream()264 SkAutoMalloc readStorage(bytesToPeek); in test_peeking_front_buffered_stream()321 SkAutoMalloc storage(fileStream.getLength()); in DEF_TEST()
126 SkAutoMalloc storage(len); in test2()166 SkAutoMalloc readStorage(totalBytes); in testWritePad()
67 SkAutoMalloc storage(totalBytes); in codec_yuv()
233 SkAutoMalloc buf(writer.bytesWritten()); in DEF_TEST()271 SkAutoMalloc buf(writer.bytesWritten());
132 SkAutoMalloc storage(100 * 100 * SkColorTypeBytesPerPixel(kRGBA_F32_SkColorType)); in DEF_TEST()
81 mutable SkAutoMalloc fGeometryUniformData;82 mutable SkAutoMalloc fFragmentUniformData;
85 mutable SkAutoMalloc fGeometryUniformData;86 mutable SkAutoMalloc fFragmentUniformData;
37 SkAutoMalloc fPixelStorage; // Set in onDelayedSetup.
38 SkAutoMalloc fPixelStorage;
31 SkAutoMalloc fSurfaceMemory;