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

Unified Diff: src/core/SkCanvas.cpp

Issue 1120033003: remove unneeded SK_SUPPORT_LEGACY_IMAGEFILTER_TO_COLORFILTER flag (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 80e913d9f9913e0b3973c2214a356ca0527c4630..3e3f714880276191cdb9a29e38c9bb7f2eba86c7 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -309,9 +309,6 @@ static SkPaint* set_if_needed(SkLazyPaint* lazy, const SkPaint& orig) {
* colorfilter, else return NULL.
*/
static SkColorFilter* image_to_color_filter(const SkPaint& paint) {
-#ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_TO_COLORFILTER
- return NULL;
-#else
SkImageFilter* imgf = paint.getImageFilter();
if (!imgf) {
return NULL;
@@ -332,7 +329,6 @@ static SkColorFilter* image_to_color_filter(const SkPaint& paint) {
// and we need to combine them into a single colorfilter.
SkAutoTUnref<SkColorFilter> autoImgCF(imgCF);
return SkColorFilter::CreateComposeFilter(imgCF, paintCF);
-#endif
}
class AutoDrawLooper {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698