1 /* 2 * Copyright 2013 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 SkTileImageFilter_DEFINED 9 #define SkTileImageFilter_DEFINED 10 11 #include "include/core/SkImageFilter.h" 12 13 // DEPRECATED: Use include/effects/SkImageFilters::Tile 14 class SK_API SkTileImageFilter { 15 public: 16 /** Create a tile image filter 17 @param src Defines the pixels to tile 18 @param dst Defines the pixels where tiles are drawn 19 @param input Input from which the subregion defined by srcRect will be tiled 20 */ 21 static sk_sp<SkImageFilter> Make(const SkRect& src, 22 const SkRect& dst, 23 sk_sp<SkImageFilter> input); 24 25 static void RegisterFlattenables(); 26 27 private: 28 SkTileImageFilter() = delete; 29 }; 30 31 #endif 32