aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT/SkDebuggerGUI.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-22 18:03:56 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-22 18:03:56 +0000
commit25bc2f86c2b94ee1f0921d90e6629d8cb22f69b7 (patch)
tree94e43bd37cdf0e6b319fe30dec2a8ed5b5f1b4b6 /debugger/QT/SkDebuggerGUI.cpp
parent3f5ecd6cb417c7adf256e48ef3f336052d326b84 (diff)
Fix saving modified skp from debugger
Diffstat (limited to 'debugger/QT/SkDebuggerGUI.cpp')
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index 058cb5c10c..812ce0300e 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -555,7 +555,9 @@ void SkDebuggerGUI::drawComplete() {
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) {