Index: src/utils/SkDumpCanvas.cpp |
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp |
index fcb24d28c43187ede16a175e9918d64aa8bdf29b..68bd13eccb419b98e744a89c81eeccba00f59cc0 100644 |
--- a/src/utils/SkDumpCanvas.cpp |
+++ b/src/utils/SkDumpCanvas.cpp |
@@ -209,8 +209,8 @@ SkCanvas::SaveLayerStrategy SkDumpCanvas::getSaveLayerStrategy(const SaveLayerRe |
if (paint->getAlpha() != 0xFF) { |
str.appendf(" alpha:0x%02X", paint->getAlpha()); |
} |
- if (paint->getXfermode()) { |
- str.appendf(" xfermode:%p", paint->getXfermode()); |
+ if (!paint->isSrcOver()) { |
+ str.appendf(" blendmode:%d", paint->getBlendMode()); |
} |
} |
this->dump(kSave_Verb, paint, str.c_str()); |
@@ -540,8 +540,10 @@ void SkFormatDumper::dump(SkDumpCanvas* canvas, SkDumpCanvas::Verb verb, |
if (p) { |
msg.appendf(" color:0x%08X flags:%X", p->getColor(), p->getFlags()); |
+ if (!p->isSrcOver()) { |
+ msg.appendf(" blendmode:%d", p->getBlendMode()); |
+ } |
appendFlattenable(&msg, p->getShader(), "shader"); |
- appendFlattenable(&msg, p->getXfermode(), "xfermode"); |
appendFlattenable(&msg, p->getPathEffect(), "pathEffect"); |
appendFlattenable(&msg, p->getMaskFilter(), "maskFilter"); |
appendFlattenable(&msg, p->getPathEffect(), "pathEffect"); |