Index: debugger/QT/SkGLWidget.cpp |
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp |
index 1c524aad58e3fcde5e853ff1b111e0437f3a8e02..1fbedf17a77f14aa8b0f50d802cea94ce009a3b5 100644 |
--- a/debugger/QT/SkGLWidget.cpp |
+++ b/debugger/QT/SkGLWidget.cpp |
@@ -64,8 +64,8 @@ void SkGLWidget::createRenderTarget() { |
GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height()); |
desc.fOrigin = kBottomLeft_GrSurfaceOrigin; |
SkAutoTUnref<GrRenderTarget> curRenderTarget(fCurContext->wrapBackendRenderTarget(desc)); |
- fGpuDevice.reset(SkGpuDevice::Create(curRenderTarget.get(), |
- SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType))); |
+ SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); |
+ fGpuDevice.reset(SkGpuDevice::Create(curRenderTarget, &props)); |
fCanvas.reset(new SkCanvas(fGpuDevice)); |
} |