Added platform specific includes
authoryangsu@google.com <yangsu@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 Jun 2011 22:27:30 +0000 (22:27 +0000)
committeryangsu@google.com <yangsu@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 Jun 2011 22:27:30 +0000 (22:27 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1696 2bbb7eff-a529-9590-31e7-b0007b416f81

include/utils/mac/SkCGUtils.h
src/ports/SkImageDecoder_CG.cpp

index 06bb85c6876db1755b1f372ff3319c9b83750f56..aba64679e35333f6d40888b75b9abda53d63a2eb 100644 (file)
@@ -7,6 +7,10 @@
 #include <ApplicationServices/ApplicationServices.h>
 #endif
 
+#ifdef SK_BUILD_FOR_IOS
+#include <CoreGraphics/CoreGraphics.h>
+#endif
+
 class SkBitmap;
 
 /**
index eb7ee16f39c1b1c45e341828e4d2a521087b4122..0e8b95b843b851ce67dabf06e9e85b3555ee1b1b 100644 (file)
@@ -13,7 +13,6 @@
 ** limitations under the License.
 */
 
-#include <ApplicationServices/ApplicationServices.h>
 #include "SkImageDecoder.h"
 #include "SkImageEncoder.h"
 #include "SkMovie.h"
 #include "SkTemplates.h"
 #include "SkCGUtils.h"
 
+//#ifdef SK_BUILD_FOR_MAC
+//#include <ApplicationServices/ApplicationServices.h>
+//#endif
+//
+//#ifdef SK_BUILD_FOR_IOS
+//#include <CoreGraphics/CoreGraphics.h>
+//#endif
+
 static void malloc_release_proc(void* info, const void* data, size_t size) {
     sk_free(info);
 }