Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c334df7

Browse files
committed
Fixup BookMaker for makeWithFilter change
[email protected] Change-Id: Ib10e5337df623df253ca39df0e57097a39fe87d5 Reviewed-on: https://skia-review.googlesource.com/c/183321 Reviewed-by: Robert Phillips <[email protected]> Reviewed-by: Brian Salomon <[email protected]> Commit-Queue: Robert Phillips <[email protected]>
1 parent e7d28f4 commit c334df7

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docs/SkImage_Reference.bmh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,8 @@ If cachingHint is kDisallow_CachingHint, pixels are not added to the local cache
15381538

15391539
# ------------------------------------------------------------------------------
15401540

1541-
#Method sk_sp<SkImage> makeWithFilter(const SkImageFilter* filter, const SkIRect& subset,
1541+
#Method sk_sp<SkImage> makeWithFilter(GrContext* context,
1542+
const SkImageFilter* filter, const SkIRect& subset,
15421543
const SkIRect& clipBounds, SkIRect* outSubset,
15431544
SkIPoint* offset) const
15441545
#In Constructors
@@ -1563,7 +1564,8 @@ By translating canvas by returned offset, Image appears stationary.
15631564
clipBounds.outset(60, 60);
15641565
SkIRect outSubset;
15651566
SkIPoint offset;
1566-
sk_sp<SkImage> filtered(image->makeWithFilter(offsetFilter.get(), subset, clipBounds,
1567+
sk_sp<SkImage> filtered(image->makeWithFilter(canvas->getGrContext(),
1568+
offsetFilter.get(), subset, clipBounds,
15671569
&outSubset, &offset));
15681570
SkPaint paint;
15691571
paint.setAntiAlias(true);
@@ -1580,6 +1582,19 @@ By translating canvas by returned offset, Image appears stationary.
15801582

15811583
# ------------------------------------------------------------------------------
15821584

1585+
#Method sk_sp<SkImage> makeWithFilter(const SkImageFilter* filter, const SkIRect& subset,
1586+
const SkIRect& clipBounds, SkIRect* outSubset,
1587+
SkIPoint* offset) const
1588+
#In Constructors
1589+
#Line # creates filtered, clipped Image ##
1590+
#Populate
1591+
#NoExample
1592+
##
1593+
#SeeAlso makeShader SkPaint::setImageFilter
1594+
#Method ##
1595+
1596+
# ------------------------------------------------------------------------------
1597+
15831598
#Typedef std::function<void(GrBackendTexture)> BackendTextureReleaseProc
15841599
#Line # parameter type for MakeBackendTextureFromSkImage ##
15851600

0 commit comments

Comments
 (0)