aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT/SkDrawCommandGeometryWidget.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-24 08:29:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-24 08:29:41 -0700
commitd98120e44703814c29fc76c732a2db8faae9774b (patch)
tree1a517775f86ed2ebd2806dde438c9bc8e212efd1 /debugger/QT/SkDrawCommandGeometryWidget.cpp
parent4b32360f4456af2b62f3fd37ed6f049a8037e47a (diff)
Fix debugger w.r.t. sk_sp changes
Diffstat (limited to 'debugger/QT/SkDrawCommandGeometryWidget.cpp')
-rw-r--r--debugger/QT/SkDrawCommandGeometryWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/debugger/QT/SkDrawCommandGeometryWidget.cpp b/debugger/QT/SkDrawCommandGeometryWidget.cpp
index 5144f5fdab..2134077acf 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();
}
}