2015-09-14 20:31:18 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkImageSource_DEFINED
|
|
|
|
#define SkImageSource_DEFINED
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkImage.h"
|
|
|
|
#include "include/core/SkImageFilter.h"
|
2015-09-14 20:31:18 +00:00
|
|
|
|
2019-08-01 20:02:27 +00:00
|
|
|
// DEPRECATED: Use include/effects/SkImageFilters::Image
|
2019-07-30 14:03:16 +00:00
|
|
|
class SK_API SkImageSource {
|
2015-09-14 20:31:18 +00:00
|
|
|
public:
|
2016-04-17 21:27:05 +00:00
|
|
|
static sk_sp<SkImageFilter> Make(sk_sp<SkImage> image);
|
2016-04-01 16:28:51 +00:00
|
|
|
static sk_sp<SkImageFilter> Make(sk_sp<SkImage> image,
|
|
|
|
const SkRect& srcRect,
|
|
|
|
const SkRect& dstRect,
|
2016-04-17 21:27:05 +00:00
|
|
|
SkFilterQuality filterQuality);
|
2015-09-14 20:31:18 +00:00
|
|
|
|
2019-07-30 14:03:16 +00:00
|
|
|
static void RegisterFlattenables();
|
2017-09-25 17:26:40 +00:00
|
|
|
|
2015-09-14 20:31:18 +00:00
|
|
|
private:
|
2019-07-30 14:03:16 +00:00
|
|
|
SkImageSource() = delete;
|
2015-09-14 20:31:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|