d89e811684
Instead of requiring the implementation details of the SkImageGenerator which backs the CG image generator to be present in the header, move the class into the implementation and only expose the factory method. Change-Id: I728276ffcfb6bb4e7302280459a79210e8d67475 Reviewed-on: https://skia-review.googlesource.com/155611 Commit-Queue: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Hal Canary <halcanary@google.com>
21 lines
469 B
C++
21 lines
469 B
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "SkTypes.h"
|
|
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
|
|
|
|
#include "SkData.h"
|
|
#include "SkImageGenerator.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace SkImageGeneratorCG {
|
|
SK_API std::unique_ptr<SkImageGenerator> MakeFromEncodedCG(sk_sp<SkData>);
|
|
}
|
|
|
|
#endif //defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
|