commit | 374772bd61951f01bf84fe17bf53d8867681c9ae | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Wed Oct 05 17:33:02 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Oct 05 17:33:03 2016 -0700 |
tree | ade94be090be12f7503fd35e77c4dae2dc1f0a47 | |
parent | 61c21cdcc31081a1bd4a3a7480b482d135f7df33 [diff] [blame] |
Revert[8] "replace SkXfermode obj with SkBlendMode enum in paints" This reverts commit c245574ba3d0e2ade6c94b2812de3baa383bf4c4. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2396953002 TBR= Review-Url: https://codereview.chromium.org/2396953002
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp index 2870f31..67779ba 100644 --- a/src/image/SkImage.cpp +++ b/src/image/SkImage.cpp
@@ -259,7 +259,7 @@ SkCanvas canvas(bm); SkPaint paint; - paint.setXfermodeMode(SkXfermode::kSrc_Mode); + paint.setBlendMode(SkBlendMode::kSrc); canvas.drawImage(this, -SkIntToScalar(srcX), -SkIntToScalar(srcY), &paint); return true;