Index: debugger/QT/SkDebuggerGUI.cpp |
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp |
index afb5c6dc5fdec72b56f3f52c8698506022185501..1999e6e632550da32769a3e29d4008a2b5e5f5e4 100644 |
--- a/debugger/QT/SkDebuggerGUI.cpp |
+++ b/debugger/QT/SkDebuggerGUI.cpp |
@@ -674,7 +674,7 @@ void SkDebuggerGUI::loadPicture(const SkString& fileName) { |
fLoading = true; |
SkAutoTDelete<SkStream> stream(new SkFILEStream(fileName.c_str())); |
- SkPicture* picture = SkPicture::CreateFromStream(stream); |
+ auto picture = SkPicture::MakeFromStream(stream); |
if (nullptr == picture) { |
QMessageBox::critical(this, "Error loading file", "Couldn't read file, sorry."); |
@@ -682,14 +682,14 @@ void SkDebuggerGUI::loadPicture(const SkString& fileName) { |
} |
fCanvasWidget.resetWidgetTransform(); |
- fDebugger.loadPicture(picture); |
+ fDebugger.loadPicture(picture.get()); |
fSkipCommands.setCount(fDebugger.getSize()); |
for (int i = 0; i < fSkipCommands.count(); ++i) { |
fSkipCommands[i] = false; |
} |
- SkSafeUnref(picture); |
+ picture.reset(); |
/* fDebugCanvas is reinitialized every load picture. Need it to retain value |
* of the visibility filter. |