Flutter Engine
The Flutter Engine
SkImageGeneratorCG.h
Go to the documentation of this file.
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
13
14#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
15
16#include "include/core/SkData.h"
20
21#include <memory>
22
23namespace SkImageGeneratorCG {
24SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedCG(sk_sp<SkData>);
25} // namespace SkImageGeneratorCG
26
27#endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
28#endif // SkImageGeneratorCG_DEFINED
#define SK_API
Definition: SkAPI.h:35