| 1 |
/* |
| 2 |
* Copyright 2016 Google Inc. |
| 3 |
* |
| 4 |
* Use of this source code is governed by a BSD-style license that can be |
| 5 |
* found in the LICENSE file. |
| 6 |
*/ |
| 7 |
#ifndef SkImageGeneratorCG_DEFINED |
| 8 |
#define SkImageGeneratorCG_DEFINED |
| 9 |
|
| 10 |
// This is needed as clients may override the target platform |
| 11 |
// using SkUserConfig |
| 12 |
#include "include/private/base/SkLoadUserConfig.h" |
| 13 |
|
| 14 |
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 15 |
|
| 16 |
#include "include/core/SkData.h" |
| 17 |
#include "include/core/SkImageGenerator.h" |
| 18 |
#include "include/core/SkRefCnt.h" |
| 19 |
#include "include/private/base/SkAPI.h" |
| 20 |
|
| 21 |
#include <memory> |
| 22 |
|
| 23 |
namespace SkImageGeneratorCG { |
| 24 |
SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedCG(sk_sp<const SkData>); |
| 25 |
} // namespace SkImageGeneratorCG |
| 26 |
|
| 27 |
#endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 28 |
#endif // SkImageGeneratorCG_DEFINED |