aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT/SkDebuggerGUI.cpp
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2016-11-15 10:03:32 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-15 15:41:09 +0000
commitf530586c417800d086e6e727ecb1b31e678f4183 (patch)
tree5606ada8e35643dbeaf57bb020ef339a3aae2ab1 /debugger/QT/SkDebuggerGUI.cpp
parentc73a1ecbed64652b3d7aa8dc6face9a2205ce830 (diff)
Resurrect SkDebugger
Can't let go <sniffle>. R=robertphillips@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4793 Change-Id: Ida5936d17af2ef60c3f50e27b4f4987a79165fa5 Reviewed-on: https://skia-review.googlesource.com/4793 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'debugger/QT/SkDebuggerGUI.cpp')
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index 3b84afcdfe..1437faf02a 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -283,7 +283,7 @@ void SkDebuggerGUI::saveToFile(const SkString& filename) {
sk_sp<SkPixelSerializer> serializer(
SkImageEncoder::CreatePixelSerializer());
- copy->serialize(&file, serializer);
+ copy->serialize(&file, serializer.get());
}
void SkDebuggerGUI::loadFile(QListWidgetItem *item) {
@@ -672,9 +672,9 @@ void SkDebuggerGUI::populateDirectoryWidget() {
void SkDebuggerGUI::loadPicture(const SkString& fileName) {
fFileName = fileName;
fLoading = true;
- std::unique_ptr<SkStream> stream(new SkFILEStream(fileName.c_str()));
+ SkFILEStream stream(fileName.c_str());
- auto picture = SkPicture::MakeFromStream(stream);
+ auto picture = SkPicture::MakeFromStream(&stream);
if (nullptr == picture) {
QMessageBox::critical(this, "Error loading file", "Couldn't read file, sorry.");