| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef SkCGUtils_DEFINED | 8 #ifndef SkCGUtils_DEFINED |
| 9 #define SkCGUtils_DEFINED | 9 #define SkCGUtils_DEFINED |
| 10 | 10 |
| 11 #include "SkSize.h" | 11 #include "SkSize.h" |
| 12 #include "SkImageInfo.h" | 12 #include "SkImageInfo.h" |
| 13 | 13 |
| 14 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 15 |
| 14 #ifdef SK_BUILD_FOR_MAC | 16 #ifdef SK_BUILD_FOR_MAC |
| 15 #include <ApplicationServices/ApplicationServices.h> | 17 #include <ApplicationServices/ApplicationServices.h> |
| 16 #endif | 18 #endif |
| 17 | 19 |
| 18 #ifdef SK_BUILD_FOR_IOS | 20 #ifdef SK_BUILD_FOR_IOS |
| 19 #include <CoreGraphics/CoreGraphics.h> | 21 #include <CoreGraphics/CoreGraphics.h> |
| 20 #endif | 22 #endif |
| 21 | 23 |
| 22 class SkBitmap; | 24 class SkBitmap; |
| 23 class SkData; | 25 class SkData; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 /** | 73 /** |
| 72 * Return a provider that wraps the specified stream. It will become the only | 74 * Return a provider that wraps the specified stream. It will become the only |
| 73 * owner of the stream, so the caller must stop referring to the stream. | 75 * owner of the stream, so the caller must stop referring to the stream. |
| 74 * | 76 * |
| 75 * When the provider is finally deleted, it will delete the stream. | 77 * When the provider is finally deleted, it will delete the stream. |
| 76 */ | 78 */ |
| 77 CGDataProviderRef SkCreateDataProviderFromStream(SkStream*); | 79 CGDataProviderRef SkCreateDataProviderFromStream(SkStream*); |
| 78 | 80 |
| 79 CGDataProviderRef SkCreateDataProviderFromData(SkData*); | 81 CGDataProviderRef SkCreateDataProviderFromData(SkData*); |
| 80 | 82 |
| 81 #endif | 83 #endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 84 #endif // SkCGUtils_DEFINED |
| OLD | NEW |