| commit | 25bc2f86c2b94ee1f0921d90e6629d8cb22f69b7 | [log] [tgz] |
|---|---|---|
| author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jan 22 18:03:56 2013 +0000 |
| committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jan 22 18:03:56 2013 +0000 |
| tree | 94e43bd37cdf0e6b319fe30dec2a8ed5b5f1b4b6 | |
| parent | 3f5ecd6cb417c7adf256e48ef3f336052d326b84 [diff] [blame] |
Fix saving modified skp from debugger https://codereview.appspot.com/7181048/ git-svn-id: http://skia.googlecode.com/svn/trunk@7314 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index 058cb5c..812ce03 100644 --- a/debugger/QT/SkDebuggerGUI.cpp +++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -555,7 +555,9 @@ void SkDebuggerGUI::saveToFile(const SkString& filename) { SkFILEWStream file(filename.c_str()); - fDebugger.makePicture()->serialize(&file); + SkAutoTUnref<SkPicture> copy(fDebugger.copyPicture()); + + copy->serialize(&file); } void SkDebuggerGUI::loadFile(QListWidgetItem *item) {