aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@google.com>2018-05-31 12:27:33 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-31 12:27:44 +0000
commit89ad31e97cc886dc6417d9ee2ec79998c1a09912 (patch)
tree631fa1c6554a398d32c6ab2eb6b003dc0e581e0c /include/effects
parent92e37b6d79f12ccfaaf7671413316952d182267d (diff)
Revert "Reland "remove toString""
This reverts commit 92e37b6d79f12ccfaaf7671413316952d182267d. Reason for revert: toString still used by flutter Original change's description: > Reland "remove toString" > > This reverts commit 32a4910e57b1fdd3c8671de1ee85e05ca21d079f. > > Reason for revert: SkMatrix::toString use has been removed from flutter and has been picked up in fuchsia > > Original change's description: > > Revert "remove toString" > > > > This reverts commit 5191880cbf3ee4d122b0d11b4945fbab0784fda7. > > > > Reason for revert: broke flutter > > > > Original change's description: > > > remove toString > > > > > > toString may have been used by obsolete debugger only > > > find out if that is so > > > > > > R=​brianosman@google.com,bsalomon@google.com > > > > > > Docs-Preview: https://skia.org/?cl=119894 > > > Bug:830651 > > > Change-Id: I737f19b7d3fbc869bea2f443fa3b5ed7c1393ffd > > > Reviewed-on: https://skia-review.googlesource.com/119894 > > > Commit-Queue: Cary Clark <caryclark@google.com> > > > Reviewed-by: Brian Salomon <bsalomon@google.com> > > > > TBR=bsalomon@google.com,brianosman@google.com,caryclark@google.com,caryclark@skia.org > > > > Change-Id: I9f81de6c3615ee0608bcea9081b77239b4b8816c > > No-Presubmit: true > > No-Tree-Checks: true > > No-Try: true > > Bug: 830651 > > Reviewed-on: https://skia-review.googlesource.com/129340 > > Reviewed-by: Cary Clark <caryclark@google.com> > > Commit-Queue: Cary Clark <caryclark@google.com> > > TBR=bsalomon@google.com,brianosman@google.com,caryclark@google.com,caryclark@skia.org > > # Not skipping CQ checks because original CL landed > 1 day ago. > > Bug: 830651 > Change-Id: Ida8725b6051132d8c46faf99358a8fcc1bcabf34 > Reviewed-on: https://skia-review.googlesource.com/129623 > Reviewed-by: Cary Clark <caryclark@skia.org> > Reviewed-by: Cary Clark <caryclark@google.com> > Commit-Queue: Cary Clark <caryclark@google.com> TBR=bsalomon@google.com,brianosman@google.com,caryclark@google.com,caryclark@skia.org Change-Id: Iafc59ffc1b3db67c520ba31bf12d68e1b46c0ea2 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 830651 Reviewed-on: https://skia-review.googlesource.com/131082 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'include/effects')
-rw-r--r--include/effects/Sk1DPathEffect.h2
-rw-r--r--include/effects/Sk2DPathEffect.h6
-rw-r--r--include/effects/SkColorFilterImageFilter.h2
-rw-r--r--include/effects/SkComposeImageFilter.h2
-rw-r--r--include/effects/SkCornerPathEffect.h2
-rw-r--r--include/effects/SkDiscretePathEffect.h2
-rw-r--r--include/effects/SkDisplacementMapEffect.h2
-rw-r--r--include/effects/SkDropShadowImageFilter.h1
-rw-r--r--include/effects/SkImageSource.h2
-rw-r--r--include/effects/SkLayerDrawLooper.h2
-rw-r--r--include/effects/SkLumaColorFilter.h2
-rw-r--r--include/effects/SkMagnifierImageFilter.h2
-rw-r--r--include/effects/SkMatrixConvolutionImageFilter.h2
-rw-r--r--include/effects/SkMergeImageFilter.h2
-rw-r--r--include/effects/SkMorphologyImageFilter.h4
-rw-r--r--include/effects/SkOffsetImageFilter.h2
-rw-r--r--include/effects/SkOverdrawColorFilter.h2
-rw-r--r--include/effects/SkPaintImageFilter.h2
-rw-r--r--include/effects/SkPictureImageFilter.h1
-rw-r--r--include/effects/SkTileImageFilter.h2
-rw-r--r--include/effects/SkToSRGBColorFilter.h2
21 files changed, 46 insertions, 0 deletions
diff --git a/include/effects/Sk1DPathEffect.h b/include/effects/Sk1DPathEffect.h
index 022505f313..a78aded601 100644
--- a/include/effects/Sk1DPathEffect.h
+++ b/include/effects/Sk1DPathEffect.h
@@ -62,6 +62,8 @@ public:
virtual bool filterPath(SkPath*, const SkPath&,
SkStrokeRec*, const SkRect*) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/Sk2DPathEffect.h b/include/effects/Sk2DPathEffect.h
index 3bdf5ded30..841e5b8ab2 100644
--- a/include/effects/Sk2DPathEffect.h
+++ b/include/effects/Sk2DPathEffect.h
@@ -40,6 +40,8 @@ protected:
explicit Sk2DPathEffect(const SkMatrix& mat);
void flatten(SkWriteBuffer&) const override;
+ void toString(SkString* str) const override;
+
private:
SkMatrix fMatrix, fInverse;
bool fMatrixIsInvertible;
@@ -64,6 +66,8 @@ public:
virtual bool filterPath(SkPath* dst, const SkPath& src,
SkStrokeRec*, const SkRect*) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
@@ -94,6 +98,8 @@ public:
return sk_sp<SkPathEffect>(new SkPath2DPathEffect(matrix, path));
}
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkColorFilterImageFilter.h b/include/effects/SkColorFilterImageFilter.h
index a664490b48..f422b0901a 100644
--- a/include/effects/SkColorFilterImageFilter.h
+++ b/include/effects/SkColorFilterImageFilter.h
@@ -19,6 +19,8 @@ public:
sk_sp<SkImageFilter> input,
const CropRect* cropRect = nullptr);
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkComposeImageFilter.h b/include/effects/SkComposeImageFilter.h
index acde1d65aa..7c86126638 100644
--- a/include/effects/SkComposeImageFilter.h
+++ b/include/effects/SkComposeImageFilter.h
@@ -17,6 +17,8 @@ public:
SkRect computeFastBounds(const SkRect& src) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkCornerPathEffect.h b/include/effects/SkCornerPathEffect.h
index e1c57e73b6..0f052b880d 100644
--- a/include/effects/SkCornerPathEffect.h
+++ b/include/effects/SkCornerPathEffect.h
@@ -28,6 +28,8 @@ public:
virtual bool filterPath(SkPath* dst, const SkPath& src,
SkStrokeRec*, const SkRect*) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
diff --git a/include/effects/SkDiscretePathEffect.h b/include/effects/SkDiscretePathEffect.h
index fc53f2a607..252e6de8a3 100644
--- a/include/effects/SkDiscretePathEffect.h
+++ b/include/effects/SkDiscretePathEffect.h
@@ -35,6 +35,8 @@ public:
virtual bool filterPath(SkPath* dst, const SkPath& src,
SkStrokeRec*, const SkRect*) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
diff --git a/include/effects/SkDisplacementMapEffect.h b/include/effects/SkDisplacementMapEffect.h
index 1790e4735d..929086cabd 100644
--- a/include/effects/SkDisplacementMapEffect.h
+++ b/include/effects/SkDisplacementMapEffect.h
@@ -39,6 +39,8 @@ public:
SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix& ctm,
MapDirection, const SkIRect* inputRect) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkDropShadowImageFilter.h b/include/effects/SkDropShadowImageFilter.h
index c86550d178..e8c5740f9d 100644
--- a/include/effects/SkDropShadowImageFilter.h
+++ b/include/effects/SkDropShadowImageFilter.h
@@ -30,6 +30,7 @@ public:
const CropRect* cropRect = nullptr);
SkRect computeFastBounds(const SkRect&) const override;
+ void toString(SkString* str) const override;
Factory getFactory() const override { return CreateProc; }
diff --git a/include/effects/SkImageSource.h b/include/effects/SkImageSource.h
index 11bc7ed690..d25cb6dc36 100644
--- a/include/effects/SkImageSource.h
+++ b/include/effects/SkImageSource.h
@@ -22,6 +22,8 @@ public:
SkRect computeFastBounds(const SkRect& src) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h
index 18a9b93991..10a7274394 100644
--- a/include/effects/SkLayerDrawLooper.h
+++ b/include/effects/SkLayerDrawLooper.h
@@ -75,6 +75,8 @@ public:
bool asABlurShadow(BlurShadowRec* rec) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer);
diff --git a/include/effects/SkLumaColorFilter.h b/include/effects/SkLumaColorFilter.h
index 38886f80c2..14f2d4f773 100644
--- a/include/effects/SkLumaColorFilter.h
+++ b/include/effects/SkLumaColorFilter.h
@@ -36,6 +36,8 @@ public:
GrContext*, const GrColorSpaceInfo&) const override;
#endif
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkMagnifierImageFilter.h b/include/effects/SkMagnifierImageFilter.h
index 5a383dc140..382f62bc52 100644
--- a/include/effects/SkMagnifierImageFilter.h
+++ b/include/effects/SkMagnifierImageFilter.h
@@ -18,6 +18,8 @@ public:
sk_sp<SkImageFilter> input,
const CropRect* cropRect = nullptr);
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkMatrixConvolutionImageFilter.h b/include/effects/SkMatrixConvolutionImageFilter.h
index ccee2fd2f3..cb4f087a75 100644
--- a/include/effects/SkMatrixConvolutionImageFilter.h
+++ b/include/effects/SkMatrixConvolutionImageFilter.h
@@ -68,6 +68,8 @@ public:
sk_sp<SkImageFilter> input,
const CropRect* cropRect = nullptr);
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkMergeImageFilter.h b/include/effects/SkMergeImageFilter.h
index 978c07ecbe..5fc6bcb010 100644
--- a/include/effects/SkMergeImageFilter.h
+++ b/include/effects/SkMergeImageFilter.h
@@ -25,6 +25,8 @@ public:
return Make(array, 2, cropRect);
}
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkMorphologyImageFilter.h b/include/effects/SkMorphologyImageFilter.h
index aa9edfd155..ceb4867a79 100644
--- a/include/effects/SkMorphologyImageFilter.h
+++ b/include/effects/SkMorphologyImageFilter.h
@@ -62,6 +62,8 @@ public:
sk_sp<SkImageFilter> input,
const CropRect* cropRect = nullptr);
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
@@ -85,6 +87,8 @@ public:
sk_sp<SkImageFilter> input,
const CropRect* cropRect = nullptr);
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkOffsetImageFilter.h b/include/effects/SkOffsetImageFilter.h
index bbf19a9199..f352a76e07 100644
--- a/include/effects/SkOffsetImageFilter.h
+++ b/include/effects/SkOffsetImageFilter.h
@@ -20,6 +20,8 @@ public:
SkRect computeFastBounds(const SkRect& src) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkOverdrawColorFilter.h b/include/effects/SkOverdrawColorFilter.h
index 37aa81332b..33eb27fcc2 100644
--- a/include/effects/SkOverdrawColorFilter.h
+++ b/include/effects/SkOverdrawColorFilter.h
@@ -32,6 +32,8 @@ public:
GrContext*, const GrColorSpaceInfo&) const override;
#endif
+ void toString(SkString* str) const override;
+
static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer);
Factory getFactory() const override { return CreateProc; }
static void InitializeFlattenables();
diff --git a/include/effects/SkPaintImageFilter.h b/include/effects/SkPaintImageFilter.h
index 8765665fbf..bf7c51b50e 100644
--- a/include/effects/SkPaintImageFilter.h
+++ b/include/effects/SkPaintImageFilter.h
@@ -27,6 +27,8 @@ public:
bool affectsTransparentBlack() const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkPictureImageFilter.h b/include/effects/SkPictureImageFilter.h
index f3011ad274..0cde3988c5 100644
--- a/include/effects/SkPictureImageFilter.h
+++ b/include/effects/SkPictureImageFilter.h
@@ -25,6 +25,7 @@ public:
*/
static sk_sp<SkImageFilter> Make(sk_sp<SkPicture> picture, const SkRect& cropRect);
+ void toString(SkString* str) const override;
Factory getFactory() const override { return CreateProc; }
diff --git a/include/effects/SkTileImageFilter.h b/include/effects/SkTileImageFilter.h
index 2310da3881..c2e38823d0 100644
--- a/include/effects/SkTileImageFilter.h
+++ b/include/effects/SkTileImageFilter.h
@@ -28,6 +28,8 @@ public:
MapDirection, const SkIRect* inputRect) const override;
SkRect computeFastBounds(const SkRect& src) const override;
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
protected:
diff --git a/include/effects/SkToSRGBColorFilter.h b/include/effects/SkToSRGBColorFilter.h
index 20264aa3e5..797e9d81dc 100644
--- a/include/effects/SkToSRGBColorFilter.h
+++ b/include/effects/SkToSRGBColorFilter.h
@@ -27,6 +27,8 @@ public:
GrContext*, const GrColorSpaceInfo&) const override;
#endif
+ void toString(SkString* str) const override;
+
Factory getFactory() const override { return CreateProc; }
private: