From c456b73fef9589bbdc5eb83eaa83e53c357bb3da Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Wed, 11 Jan 2017 17:21:57 +0000 Subject: 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 > Reviewed-by: Mike Reed > Commit-Queue: Hal Canary > 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 Reviewed-by: Kevin Lubick --- src/ports/SkFontConfigInterface_direct.cpp | 2 +- src/ports/SkFontHost_FreeType.cpp | 1 + src/ports/SkFontHost_mac.cpp | 1 - src/ports/SkImageEncoder_WIC.cpp | 4 +--- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/ports') diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp index c1a73e626c..df68fae0a8 100644 --- a/src/ports/SkFontConfigInterface_direct.cpp +++ b/src/ports/SkFontConfigInterface_direct.cpp @@ -7,7 +7,6 @@ /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */ -#include "SkAutoMalloc.h" #include "SkBuffer.h" #include "SkDataTable.h" #include "SkFixed.h" @@ -20,6 +19,7 @@ #include "SkTDArray.h" #include "SkTemplates.h" #include "SkTypeface.h" +#include "SkTypes.h" #include #include diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp index 47790f3644..15bc14d213 100644 --- a/src/ports/SkFontHost_FreeType.cpp +++ b/src/ports/SkFontHost_FreeType.cpp @@ -25,6 +25,7 @@ #include "SkStream.h" #include "SkString.h" #include "SkTemplates.h" +#include "SkTypes.h" #include #if defined(SK_CAN_USE_DLOPEN) diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index ce4895419f..274c9253a9 100644 --- a/src/ports/SkFontHost_mac.cpp +++ b/src/ports/SkFontHost_mac.cpp @@ -20,7 +20,6 @@ #endif #include "SkAdvancedTypefaceMetrics.h" -#include "SkAutoMalloc.h" #include "SkCGUtils.h" #include "SkColorPriv.h" #include "SkDescriptor.h" diff --git a/src/ports/SkImageEncoder_WIC.cpp b/src/ports/SkImageEncoder_WIC.cpp index 6bc8b5473e..52f4599433 100644 --- a/src/ports/SkImageEncoder_WIC.cpp +++ b/src/ports/SkImageEncoder_WIC.cpp @@ -28,16 +28,14 @@ #undef INT64_MAX #undef UINT64_MAX +#include #include "SkAutoCoInitialize.h" -#include "SkAutoMalloc.h" #include "SkBitmap.h" #include "SkImageEncoderPriv.h" #include "SkIStream.h" -#include "SkImageEncoder.h" #include "SkStream.h" #include "SkTScopedComPtr.h" #include "SkUnPreMultiply.h" -#include //All Windows SDKs back to XPSP2 export the CLSID_WICImagingFactory symbol. //In the Windows8 SDK the CLSID_WICImagingFactory symbol is still exported -- cgit v1.2.3