Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: tests/ImageFilterTest.cpp.rej

Issue 1852123002: Update SkXfermodeImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Overload Make methods Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ImageFilterTest.cpp.orig ('k') | tests/SerializationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ImageFilterTest.cpp.rej
diff --git a/tests/ImageFilterTest.cpp.rej b/tests/ImageFilterTest.cpp.rej
new file mode 100644
index 0000000000000000000000000000000000000000..39d115210de87d4d175cf8d4ab7d2c3b68cd5e24
--- /dev/null
+++ b/tests/ImageFilterTest.cpp.rej
@@ -0,0 +1,20 @@
+*************** public:
+*** 231,237 ****
+ cropRect).release());
+ }
+ this->addFilter("xfermode", SkXfermodeImageFilter::Make(
+- SkXfermode::Make(SkXfermode::kSrc_Mode), input, input, cropRect).release());
+ }
+ int count() const { return fFilters.count(); }
+ SkImageFilter* getFilter(int index) const { return fFilters[index].fFilter.get(); }
+--- 231,240 ----
+ cropRect).release());
+ }
+ this->addFilter("xfermode", SkXfermodeImageFilter::Make(
++ SkXfermode::Make(SkXfermode::kSrc_Mode),
++ sk_ref_sp<SkImageFilter>(input),
++ sk_ref_sp<SkImageFilter>(input),
++ cropRect).release());
+ }
+ int count() const { return fFilters.count(); }
+ SkImageFilter* getFilter(int index) const { return fFilters[index].fFilter.get(); }
« no previous file with comments | « tests/ImageFilterTest.cpp.orig ('k') | tests/SerializationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698