skia2/include
senorblanco a9fbd1676c Fix SkTileImageFilter when srcRect is a superset of bitmap bounds.
If the input bitmap passed to SkTileImageFilter does not fill the
srcRect, we were tiling this incorrectly (see the first sample
from tileimage filter -- it draws from a srcRect of 12,12 50x50
to a dstRect of 0,0 50x50. There should be no tiling at all
in this case!)

In order to fix this, we need to pad the bitmap out to srcRect,
and tile with that. In order to tile correctly in the GPU case,
we need to request a tileable texture.

NOTE: this will change the results of the tileimagefilter GM (correctness,
and added src / dest rects).

BUG=skia:4774
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1570133003

Review URL: https://codereview.chromium.org/1570133003
2016-01-11 14:09:09 -08:00
..
android Move SkBitmapRegionDecoder to include/android and src/android 2015-11-13 06:11:09 -08:00
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c Documentation: C API comments 2015-09-01 10:45:09 -07:00
codec Delete reallyHasAlpha() from SkCodec 2016-01-11 07:23:23 -08:00
config remove SkInstCnt 2015-06-26 11:45:03 -07:00
core Fix SkTileImageFilter when srcRect is a superset of bitmap bounds. 2016-01-11 14:09:09 -08:00
device/xps CMake, include/: changes to make fiddle 2.0 better 2015-12-01 09:02:49 -08:00
effects remove external header for SkModeColorFilter 2016-01-11 13:09:00 -08:00
gpu Guard SkGpuDevice 2016-01-11 13:29:31 -08:00
images remove SkInstCnt 2015-06-26 11:45:03 -07:00
pathops Revert of Revert of remove SK_SUPPORT_LEGACY_PATHOP_ENUMS (patchset #1 id:1 of https://codereview.chromium.org/1203983003/) 2015-06-26 10:23:07 -07:00
ports Update documentation for SkFontMgr methods. 2015-12-03 12:12:13 -08:00
private Change to wire up opnames in SkGpuDevice 2016-01-11 10:39:11 -08:00
svg move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
utils SkPaintFilterCanvas skip-draw support 2016-01-11 13:58:30 -08:00
views move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
xml Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00