Chromium Code Reviews| Index: src/core/SkBitmap.cpp |
| =================================================================== |
| --- src/core/SkBitmap.cpp (revision 11695) |
| +++ src/core/SkBitmap.cpp (working copy) |
| @@ -1119,10 +1119,8 @@ |
| } |
| } |
| } else { |
| - // if the src has alpha, we have to clear the dst first |
| - if (!src->isOpaque()) { |
| - tmpDst.eraseColor(SK_ColorTRANSPARENT); |
| - } |
| + // Always clear the dest in case one of the blitters accesses it |
| + tmpDst.eraseColor(SK_ColorTRANSPARENT); |
|
reed1
2013/10/10 15:16:38
// TODO: switch the allocation of tmpDst to call s
robertphillips
2013/10/10 15:48:34
Done.
|
| SkCanvas canvas(tmpDst); |
| SkPaint paint; |