From 52d4deb1288633551ad275be748d8b0f73d7b2aa Mon Sep 17 00:00:00 2001 From: robertphillips Date: Wed, 24 Jun 2015 10:09:57 -0700 Subject: [PATCH] Fix debugger compilation TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1205933002 --- debugger/QT/SkGLWidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp index cd9350a394..92c7b421ab 100644 --- a/debugger/QT/SkGLWidget.cpp +++ b/debugger/QT/SkGLWidget.cpp @@ -62,8 +62,9 @@ void SkGLWidget::createRenderTarget() { desc.fOrigin = kBottomLeft_GrSurfaceOrigin; SkAutoTUnref curRenderTarget( fCurContext->textureProvider()->wrapBackendRenderTarget(desc)); - SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); - fGpuDevice.reset(SkGpuDevice::Create(curRenderTarget, &props)); + SkSurfaceProps props(0, kUnknown_SkPixelGeometry); + fGpuDevice.reset(SkGpuDevice::Create(curRenderTarget, &props, + SkGpuDevice::kUninit_InitContents)); fCanvas.reset(new SkCanvas(fGpuDevice)); }