Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: debugger/QT/SkRasterWidget.cpp

Issue 1828273002: Fix debugger w.r.t. sk_sp changes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/QT/SkRasterWidget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « debugger/QT/SkRasterWidget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698