Fixup BookMaker for makeWithFilter change

TBR=bsalomon@google.com
Change-Id: Ib10e5337df623df253ca39df0e57097a39fe87d5
Reviewed-on: https://skia-review.googlesource.com/c/183321
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2019-01-11 14:50:16 -05:00
parent e7d28f4a8c
commit c334df71b8

View File

@ -1538,7 +1538,8 @@ If cachingHint is kDisallow_CachingHint, pixels are not added to the local cache
# ------------------------------------------------------------------------------
#Method sk_sp<SkImage> makeWithFilter(const SkImageFilter* filter, const SkIRect& subset,
#Method sk_sp<SkImage> makeWithFilter(GrContext* context,
const SkImageFilter* filter, const SkIRect& subset,
const SkIRect& clipBounds, SkIRect* outSubset,
SkIPoint* offset) const
#In Constructors
@ -1563,7 +1564,8 @@ By translating canvas by returned offset, Image appears stationary.
clipBounds.outset(60, 60);
SkIRect outSubset;
SkIPoint offset;
sk_sp<SkImage> filtered(image->makeWithFilter(offsetFilter.get(), subset, clipBounds,
sk_sp<SkImage> filtered(image->makeWithFilter(canvas->getGrContext(),
offsetFilter.get(), subset, clipBounds,
&outSubset, &offset));
SkPaint paint;
paint.setAntiAlias(true);
@ -1580,6 +1582,19 @@ By translating canvas by returned offset, Image appears stationary.
# ------------------------------------------------------------------------------
#Method sk_sp<SkImage> makeWithFilter(const SkImageFilter* filter, const SkIRect& subset,
const SkIRect& clipBounds, SkIRect* outSubset,
SkIPoint* offset) const
#In Constructors
#Line # creates filtered, clipped Image ##
#Populate
#NoExample
##
#SeeAlso makeShader SkPaint::setImageFilter
#Method ##
# ------------------------------------------------------------------------------
#Typedef std::function<void(GrBackendTexture)> BackendTextureReleaseProc
#Line # parameter type for MakeBackendTextureFromSkImage ##