aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-03-23 05:46:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-23 05:46:51 -0700
commit3e5c2b1041b15641931638d1d78b30d3c435fc71 (patch)
treee99928b5b2bf3d17f050bbe9df5d177319f0e16c /debugger/QT
parent8dcb8b04f80eff810e63c2696c01f6150d104109 (diff)
Preserve texture compression when saving a revised skp from debugger
Without this CL, saving a revised skp out the debugger can greatly expand the memory it requires. Review URL: https://codereview.chromium.org/1020103005
Diffstat (limited to 'debugger/QT')
-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 a8d8f14c21..ea3564ca0d 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -12,6 +12,7 @@
#include "SkPictureRecord.h"
#include <QListWidgetItem>
#include <QtGui>
+#include "sk_tool_utils.h"
#if defined(SK_BUILD_FOR_WIN32)
#include "SysTimer_windows.h"
@@ -359,7 +360,8 @@ void SkDebuggerGUI::saveToFile(const SkString& filename) {
SkFILEWStream file(filename.c_str());
SkAutoTUnref<SkPicture> copy(fDebugger.copyPicture());
- copy->serialize(&file);
+ sk_tool_utils::PngPixelSerializer serializer;
+ copy->serialize(&file, &serializer);
}
void SkDebuggerGUI::loadFile(QListWidgetItem *item) {