Index: debugger/QT/SkDebuggerGUI.cpp |
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp |
index 4422334496e70ef9e1848bc2d0950b646baaff69..0d009b3ffa57883df5b8609afe4b908e254b41c7 100644 |
--- a/debugger/QT/SkDebuggerGUI.cpp |
+++ b/debugger/QT/SkDebuggerGUI.cpp |
@@ -281,8 +281,9 @@ void SkDebuggerGUI::saveToFile(const SkString& filename) { |
SkFILEWStream file(filename.c_str()); |
SkAutoTUnref<SkPicture> copy(fDebugger.copyPicture()); |
- sk_tool_utils::PngPixelSerializer serializer; |
- copy->serialize(&file, &serializer); |
+ SkAutoTUnref<SkPixelSerializer> serializer( |
+ SkImageEncoder::CreatePixelSerializer()); |
+ copy->serialize(&file, serializer); |
} |
void SkDebuggerGUI::loadFile(QListWidgetItem *item) { |