diff options
author | Kevin Lubick <kjlubick@google.com> | 2017-01-11 17:21:57 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-11 17:22:12 +0000 |
commit | c456b73fef9589bbdc5eb83eaa83e53c357bb3da (patch) | |
tree | bcb8f75efaf1523bc781fa592f56d7ff86598c32 /tests | |
parent | bc6b99d22e8d9f6543ffffdc846e40e8075046c5 (diff) |
Revert "SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h"
This reverts commit a5494f117086d712855e4b6289c58c92d1549bcf.
Reason for revert: Broke Google3
Original change's description:
> 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);"
>
> Change-Id: Idacd86ca09e22bf092422228599ae0d9bedded88
> Reviewed-on: https://skia-review.googlesource.com/4543
> Reviewed-by: Ben Wagner <bungeman@google.com>
> Reviewed-by: Mike Reed <reed@google.com>
> Commit-Queue: Hal Canary <halcanary@google.com>
>
TBR=halcanary@google.com,bungeman@google.com,reed@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: Ie8bd176121c3ee83c110d66c0d0ac65e09bfc9c5
Reviewed-on: https://skia-review.googlesource.com/6884
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CodecTest.cpp | 5 | ||||
-rw-r--r-- | tests/ColorFilterTest.cpp | 2 | ||||
-rw-r--r-- | tests/FontHostTest.cpp | 1 | ||||
-rw-r--r-- | tests/FrontBufferedStreamTest.cpp | 2 | ||||
-rw-r--r-- | tests/MallocPixelRefTest.cpp | 1 | ||||
-rw-r--r-- | tests/PaintBreakTextTest.cpp | 1 | ||||
-rw-r--r-- | tests/PaintTest.cpp | 1 | ||||
-rw-r--r-- | tests/PathTest.cpp | 6 | ||||
-rw-r--r-- | tests/RegionTest.cpp | 1 | ||||
-rw-r--r-- | tests/StreamTest.cpp | 1 | ||||
-rw-r--r-- | tests/Writer32Test.cpp | 1 | ||||
-rw-r--r-- | tests/YUVTest.cpp | 3 |
12 files changed, 7 insertions, 18 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp index 0f6d54c8d7..01e9cc4d45 100644 --- a/tests/CodecTest.cpp +++ b/tests/CodecTest.cpp @@ -8,19 +8,18 @@ #include "FakeStreams.h" #include "Resources.h" #include "SkAndroidCodec.h" -#include "SkAutoMalloc.h" #include "SkBitmap.h" #include "SkCodec.h" #include "SkCodecImageGenerator.h" #include "SkColorSpace_XYZ.h" #include "SkData.h" -#include "SkFrontBufferedStream.h" #include "SkImageEncoder.h" +#include "SkFrontBufferedStream.h" #include "SkMD5.h" -#include "SkPngChunkReader.h" #include "SkRandom.h" #include "SkStream.h" #include "SkStreamPriv.h" +#include "SkPngChunkReader.h" #include "Test.h" #include "png.h" diff --git a/tests/ColorFilterTest.cpp b/tests/ColorFilterTest.cpp index b6456a6414..ad2dd0fc35 100644 --- a/tests/ColorFilterTest.cpp +++ b/tests/ColorFilterTest.cpp @@ -5,12 +5,10 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkColor.h" #include "SkColorFilter.h" #include "SkColorPriv.h" #include "SkLumaColorFilter.h" -#include "SkRandom.h" #include "SkReadBuffer.h" #include "SkWriteBuffer.h" #include "SkRandom.h" diff --git a/tests/FontHostTest.cpp b/tests/FontHostTest.cpp index 3d54c57fe7..55c524424f 100644 --- a/tests/FontHostTest.cpp +++ b/tests/FontHostTest.cpp @@ -6,7 +6,6 @@ */ #include "Resources.h" -#include "SkAutoMalloc.h" #include "SkEndian.h" #include "SkFontStream.h" #include "SkOSFile.h" diff --git a/tests/FrontBufferedStreamTest.cpp b/tests/FrontBufferedStreamTest.cpp index 69ff488358..a3862741e3 100644 --- a/tests/FrontBufferedStreamTest.cpp +++ b/tests/FrontBufferedStreamTest.cpp @@ -5,12 +5,12 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkBitmap.h" #include "SkCodec.h" #include "SkFrontBufferedStream.h" #include "SkRefCnt.h" #include "SkStream.h" +#include "SkTypes.h" #include "Test.h" static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, diff --git a/tests/MallocPixelRefTest.cpp b/tests/MallocPixelRefTest.cpp index 7e2bece7be..09e1b934e9 100644 --- a/tests/MallocPixelRefTest.cpp +++ b/tests/MallocPixelRefTest.cpp @@ -5,7 +5,6 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkData.h" #include "SkMallocPixelRef.h" #include "Test.h" diff --git a/tests/PaintBreakTextTest.cpp b/tests/PaintBreakTextTest.cpp index b716c60c99..474bbf686a 100644 --- a/tests/PaintBreakTextTest.cpp +++ b/tests/PaintBreakTextTest.cpp @@ -5,7 +5,6 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkPaint.h" #include "Test.h" diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp index 55a82a73e4..76bfb02923 100644 --- a/tests/PaintTest.cpp +++ b/tests/PaintTest.cpp @@ -5,7 +5,6 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkBlurMask.h" #include "SkBlurMaskFilter.h" #include "SkLayerDrawLooper.h" diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 0ace812ef1..2059c36db3 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -5,14 +5,14 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" +#include <cmath> #include "SkCanvas.h" #include "SkGeometry.h" #include "SkPaint.h" #include "SkParse.h" #include "SkParsePath.h" -#include "SkPathEffect.h" #include "SkPathPriv.h" +#include "SkPathEffect.h" #include "SkRRect.h" #include "SkRandom.h" #include "SkReader32.h" @@ -20,9 +20,9 @@ #include "SkStream.h" #include "SkStrokeRec.h" #include "SkSurface.h" +#include "SkTypes.h" #include "SkWriter32.h" #include "Test.h" -#include <cmath> static void set_radii(SkVector radii[4], int index, float rad) { sk_bzero(radii, sizeof(SkVector) * 4); diff --git a/tests/RegionTest.cpp b/tests/RegionTest.cpp index 172082248a..4a96056419 100644 --- a/tests/RegionTest.cpp +++ b/tests/RegionTest.cpp @@ -5,7 +5,6 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkPath.h" #include "SkRandom.h" #include "SkRegion.h" diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp index fba09c989a..ff23ca2341 100644 --- a/tests/StreamTest.cpp +++ b/tests/StreamTest.cpp @@ -6,7 +6,6 @@ */ #include "Resources.h" -#include "SkAutoMalloc.h" #include "SkData.h" #include "SkFrontBufferedStream.h" #include "SkOSFile.h" diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp index 6cb79f8270..3eab94cd2d 100644 --- a/tests/Writer32Test.cpp +++ b/tests/Writer32Test.cpp @@ -5,7 +5,6 @@ * found in the LICENSE file. */ -#include "SkAutoMalloc.h" #include "SkRandom.h" #include "SkReader32.h" #include "SkWriter32.h" diff --git a/tests/YUVTest.cpp b/tests/YUVTest.cpp index 0c31c0929a..913997b3c3 100644 --- a/tests/YUVTest.cpp +++ b/tests/YUVTest.cpp @@ -5,9 +5,8 @@ * found in the LICENSE file. */ -#include "Resources.h" -#include "SkAutoMalloc.h" #include "SkCodec.h" +#include "Resources.h" #include "SkStream.h" #include "SkTemplates.h" #include "SkYUVSizeInfo.h" |