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

Unified Diff: debugger/QT/SkDrawCommandGeometryWidget.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/SkDrawCommandGeometryWidget.h ('k') | debugger/QT/SkRasterWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « debugger/QT/SkDrawCommandGeometryWidget.h ('k') | debugger/QT/SkRasterWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698