Index: debugger/QT/SkDrawCommandGeometryWidget.cpp |
diff --git a/debugger/QT/SkDrawCommandGeometryWidget.cpp b/debugger/QT/SkDrawCommandGeometryWidget.cpp |
index 5144f5fdab350cb5e9f633da928edcac7ab1dc77..2134077acfa6cabc49dd3ca5fea6172ab1c99dc9 100644 |
--- a/debugger/QT/SkDrawCommandGeometryWidget.cpp |
+++ b/debugger/QT/SkDrawCommandGeometryWidget.cpp |
@@ -23,10 +23,10 @@ void SkDrawCommandGeometryWidget::resizeEvent(QResizeEvent* event) { |
QRect r = this->contentsRect(); |
int dim = std::min(r.width(), r.height()); |
if (dim == 0) { |
- fSurface.reset(nullptr); |
+ fSurface = nullptr; |
} else { |
SkImageInfo info = SkImageInfo::MakeN32Premul(dim, dim); |
- fSurface.reset(SkSurface::NewRaster(info)); |
+ fSurface = SkSurface::MakeRaster(info); |
this->updateImage(); |
} |
} |