Index: debugger/QT/SkRasterWidget.cpp |
diff --git a/debugger/QT/SkRasterWidget.cpp b/debugger/QT/SkRasterWidget.cpp |
index b969d50e3c51ad3511cc0ec923685e2a210d2d66..378fca64c923d44e77f71967a7a8c1d8eec27961 100644 |
--- a/debugger/QT/SkRasterWidget.cpp |
+++ b/debugger/QT/SkRasterWidget.cpp |
@@ -22,10 +22,10 @@ void SkRasterWidget::resizeEvent(QResizeEvent* event) { |
QRect r = this->contentsRect(); |
if (r.width() == 0 || r.height() == 0) { |
- fSurface.reset(nullptr); |
+ fSurface = nullptr; |
} else { |
SkImageInfo info = SkImageInfo::MakeN32Premul(r.width(), r.height()); |
- fSurface.reset(SkSurface::NewRaster(info)); |
+ fSurface = SkSurface::MakeRaster(info); |
} |
this->updateImage(); |
} |