Home
last modified time | relevance | path

Searched refs:SkAutoTMalloc (Results 1 – 25 of 67) sorted by relevance

123

/third_party/skia/include/private/
DSkTemplates.h241 class SkAutoTMalloc {
244 explicit SkAutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {} in fPtr()
247 explicit SkAutoTMalloc(size_t count) in SkAutoTMalloc() function
250 SkAutoTMalloc(SkAutoTMalloc&&) = default;
251 SkAutoTMalloc& operator=(SkAutoTMalloc&&) = default;
/third_party/skia/src/core/
DSkPictureRecorder.cpp78 SkAutoTMalloc<SkRect> bounds(fRecord->count()); in finishRecordingAsPicture()
79 SkAutoTMalloc<SkBBoxHierarchy::Metadata> meta(fRecord->count()); in finishRecordingAsPicture()
134 SkAutoTMalloc<SkRect> bounds(fRecord->count()); in finishRecordingAsDrawable()
135 SkAutoTMalloc<SkBBoxHierarchy::Metadata> meta(fRecord->count()); in finishRecordingAsDrawable()
DSkBlurMask.cpp375 SkAutoTMalloc<uint8_t> horizontalScanline(width); in ComputeBlurredScanline()
428 SkAutoTMalloc<uint8_t> profile(profileSize); in BlurRect()
446 SkAutoTMalloc<uint8_t> horizontalScanline(dstWidth); in BlurRect()
447 SkAutoTMalloc<uint8_t> verticalScanline(dstHeight); in BlurRect()
519 SkAutoTMalloc<float> gaussWindow(windowSize); in BlurGroundTruth()
569 SkAutoTMalloc<uint8_t> padPixels(padSize); in BlurGroundTruth()
586 SkAutoTMalloc<float> tmpImage(tmpSize); in BlurGroundTruth()
DSkGlyphRun.h155 SkAutoTMalloc<SkPoint> fPositions;
157 SkAutoTMalloc<SkVector> fScaledRotations;
DSkBigPicture.h34 SkAutoTMalloc<const SkPicture*> fPics;
/third_party/skia/tests/
DRecordDrawTest.cpp144 SkAutoTMalloc<SkRect> bounds(record.count());
207 SkAutoTMalloc<SkRect> bounds(record.count()); in DEF_TEST()
208 SkAutoTMalloc<SkBBoxHierarchy::Metadata> meta(record.count()); in DEF_TEST()
232 SkAutoTMalloc<SkRect> bounds(record.count()); in DEF_TEST()
233 SkAutoTMalloc<SkBBoxHierarchy::Metadata> meta(record.count()); in DEF_TEST()
262 SkAutoTMalloc<SkRect> bounds(record.count());
DTemplatesTest.cpp111 test_container_apis<SkAutoTMalloc<int>, size_t>(reporter); in DEF_TEST()
134 test_realloc_to_zero<SkAutoTMalloc<int> >(reporter); in DEF_TEST()
144 SkAutoTMalloc<int> foo(20); in DEF_TEST()
DSkBase64Test.cpp25 SkAutoTMalloc<char> src(encodeLength + 1); in DEF_TEST()
41 SkAutoTMalloc<char> dst(decodeLength); in DEF_TEST()
DCopySurfaceTest.cpp39 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
44 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
71 SkAutoTMalloc<uint32_t> read(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DStreamTest.cpp472 SkAutoTMalloc<uint8_t> src((size_t)N); in DEF_TEST()
527 SkAutoTMalloc<uint8_t> expected(remaining); in DEF_TEST()
531 SkAutoTMalloc<uint8_t> actual(remaining); in DEF_TEST()
543 SkAutoTMalloc<uint8_t> actual(remaining); in DEF_TEST()
556 SkAutoTMalloc<uint8_t> actual(remaining); in DEF_TEST()
575 SkAutoTMalloc<uint8_t> actual(miniRemaining); in DEF_TEST()
584 SkAutoTMalloc<uint8_t> actual(remaining); in DEF_TEST()
DApplyGammaTest.cpp103 SkAutoTMalloc<uint32_t> srcPixels(kBaseSize.area()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
114 SkAutoTMalloc<uint32_t> read(kBaseSize.area()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp51 SkAutoTMalloc<uint32_t> expectedPixels(pixelCnt); in test_clear()
92 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_copy_to_surface()
DSVGDeviceTest.cpp85 SkAutoTMalloc<SkScalar> xpos(xposCount); in check_text_node()
106 SkAutoTMalloc<SkScalar> ypos(yposCount); in check_text_node()
135 SkAutoTMalloc<SkScalar> xpos(len); in test_whitespace_pos()
146 SkAutoTMalloc<SkPoint> pos(len); in test_whitespace_pos()
/third_party/skia/modules/particles/src/
DSkParticleDrawable.cpp69 SkAutoTMalloc<SkRSXform> fXforms;
70 SkAutoTMalloc<SkRect> fRects;
71 SkAutoTMalloc<SkColor> fColors;
/third_party/skia/bench/
DSortBench.cpp111 SkAutoTMalloc<int> fUnsorted;
134 SkAutoTMalloc<int> sorted(N); in onDraw()
DRTreeBench.cpp40 SkAutoTMalloc<SkRect> rects(NUM_BUILD_RECTS); in onDraw()
73 SkAutoTMalloc<SkRect> rects(NUM_QUERY_RECTS); in onDelayedSetup()
/third_party/skia/modules/particles/include/
DSkParticleData.h39 SkAutoTMalloc<float> fData[kNumChannels];
/third_party/skia/include/encode/
DSkEncoder.h39 SkAutoTMalloc<uint8_t> fStorage;
/third_party/skia/docs/examples/
DImageInfo_computeByteSize.cpp9 SkAutoTMalloc<SkPMColor> storage(size); in draw()
DImageInfo_computeMinByteSize.cpp9 SkAutoTMalloc<SkPMColor> storage(size); in draw()
DSurface_MakeRasterDirect.cpp9 SkAutoTMalloc<SkPMColor> storage(size); in draw()
DCanvas_MakeRasterDirect.cpp10 SkAutoTMalloc<SkPMColor> storage(size); // allocate storage for pixels in draw()
/third_party/skia/tools/viewer/
DSkSLSlide.h40 SkAutoTMalloc<char> fInputs;
/third_party/skia/src/codec/
DSkWbmpCodec.h52 SkAutoTMalloc<uint8_t> fSrcBuffer;
/third_party/skia/samplecode/
DSamplePatch.cpp132 SkAutoTMalloc<SkPoint> vertStorage(vertCount); in draw()
156 SkAutoTMalloc<SkPoint> stripStorage(stripCount * 2); in draw()
157 SkAutoTMalloc<SkColor> colorStorage(stripCount); in draw()

123