SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h
authorHal Canary <halcanary@google.com>
Wed, 11 Jan 2017 17:44:43 +0000 (12:44 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 11 Jan 2017 18:55:34 +0000 (18:55 +0000)
commit95e3c058ef633782f7549e9e1c2727d60dbc8ee5
tree4db526398bc87c48db4565a2046b9321b7e2ee10
parent000ca636e6de2e2b8bf9c82e3dee2d7ad8e1bed8
SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h

  * SkAutoFree moved to SkTemplates.h (now implmented with unique_ptr).

  * SkAutoMalloc and SkAutoSMalloc moved to SkAutoMalloc.h

  * "SkAutoFree X(sk_malloc_throw(N));" --> "SkAutoMalloc X(N);"

Revert "Revert 'SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h'"
This reverts commit c456b73fef9589bbdc5eb83eaa83e53c357bb3da.

Change-Id: Ie2c1a17c20134b8ceab85a68b3ae3e61c24fbaab
Reviewed-on: https://skia-review.googlesource.com/6886
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
55 files changed:
bench/AndroidCodecBench.h
bench/CodecBench.h
bench/ColorCodecBench.h
bench/nanobench.cpp
dm/DMSrcSink.cpp
gm/drawatlas.cpp
include/core/SkShader.h
include/core/SkTypes.h
include/private/SkAutoMalloc.h [new file with mode: 0644]
include/private/SkTemplates.h
src/core/SkAAClip.h
src/core/SkBlitter.h
src/core/SkColorSpace_ICC.cpp
src/core/SkDistanceFieldGen.cpp
src/core/SkFontStream.cpp
src/core/SkICC.cpp
src/core/SkLinearBitmapPipeline_sample.h
src/core/SkMaskFilter.cpp
src/core/SkPictureData.cpp
src/core/SkScalerContext.cpp
src/core/SkScan_AAAPath.cpp
src/effects/gradients/SkGradientShaderPriv.h
src/gpu/GrDistanceFieldGenFromVector.cpp
src/gpu/GrYUVProvider.cpp
src/gpu/SkGr.cpp
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/builders/GrGLProgramBuilder.cpp
src/gpu/gl/builders/GrGLShaderStringBuilder.cpp
src/gpu/ops/GrAADistanceFieldPathRenderer.cpp
src/gpu/ops/GrMSAAPathRenderer.cpp
src/gpu/text/GrAtlasGlyphCache.cpp
src/gpu/vk/GrVkBackendContext.cpp
src/gpu/vk/GrVkPipelineStateDataManager.h
src/pipe/SkPipeCanvas.cpp
src/ports/SkFontConfigInterface_direct.cpp
src/ports/SkFontHost_FreeType.cpp
src/ports/SkFontHost_mac.cpp
src/ports/SkImageEncoder_WIC.cpp
tests/CodecTest.cpp
tests/ColorFilterTest.cpp
tests/FontHostTest.cpp
tests/FrontBufferedStreamTest.cpp
tests/MallocPixelRefTest.cpp
tests/PaintBreakTextTest.cpp
tests/PaintTest.cpp
tests/PathTest.cpp
tests/RegionTest.cpp
tests/StreamTest.cpp
tests/Writer32Test.cpp
tests/YUVTest.cpp
third_party/ktx/ktx.cpp
tools/SkShaper_harfbuzz.cpp
tools/debugger/SkDrawCommand.cpp
tools/viewer/sk_app/VulkanWindowContext.cpp
tools/viewer/sk_app/win/RasterWindowContext_win.cpp