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

Unified Diff: debugger/QT/SkGLWidget.cpp

Issue 1935623002: Fix old debugger (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkGLWidget.cpp
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp
index dd78db57f375a15909f1c2daab3cbd22893a9beb..975052f57d4f6bc63adbf5b2ce38c8fe57dfa116 100644
--- a/debugger/QT/SkGLWidget.cpp
+++ b/debugger/QT/SkGLWidget.cpp
@@ -60,11 +60,11 @@ void SkGLWidget::createRenderTarget() {
GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height());
desc.fOrigin = kBottomLeft_GrSurfaceOrigin;
- SkAutoTUnref<GrRenderTarget> curRenderTarget(
+ sk_sp<GrRenderTarget> curRenderTarget(
fCurContext->textureProvider()->wrapBackendRenderTarget(desc));
SkSurfaceProps props(0, kUnknown_SkPixelGeometry);
- fGpuDevice.reset(SkGpuDevice::Create(curRenderTarget, &props,
- SkGpuDevice::kUninit_InitContents));
+ fGpuDevice.reset(SkGpuDevice::Make(std::move(curRenderTarget), &props,
+ SkGpuDevice::kUninit_InitContents).release());
fCanvas.reset(new SkCanvas(fGpuDevice));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698