1/*
2 * Copyright 2015 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
8#ifndef SkImageSource_DEFINED
9#define SkImageSource_DEFINED
10
11#include "include/core/SkImage.h"
12#include "include/core/SkImageFilter.h"
13
14// DEPRECATED: Use include/effects/SkImageFilters::Image
15class SK_API SkImageSource {
16public:
17 static sk_sp<SkImageFilter> Make(sk_sp<SkImage> image);
18 static sk_sp<SkImageFilter> Make(sk_sp<SkImage> image,
19 const SkRect& srcRect,
20 const SkRect& dstRect,
21 SkFilterQuality filterQuality);
22
23 static void RegisterFlattenables();
24
25private:
26 SkImageSource() = delete;
27};
28
29#endif
30