diff options
author | reed <reed@google.com> | 2014-09-21 09:39:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-21 09:39:55 -0700 |
commit | 3716fd067a5621bb94a6cb08d72afec8bf3aceda (patch) | |
tree | cf5ceefd515bee37eec7404e3b86cd18a4d9ee80 /debugger | |
parent | 00a138c542bec58cac1a2ecc32b08c8312063ae5 (diff) |
introduce Props to surface (work in progress)
BUG=skia:
R=robertphillips@google.com, bsalomon@google.com, jvanverth@google.com, bungeman@google.com, fmalita@google.com, vangelis@chromium.org, reed@chromium.org
Author: reed@google.com
Review URL: https://codereview.chromium.org/551463004
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/QT/SkGLWidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp index dece6419ab..bd24d4e3cb 100644 --- a/debugger/QT/SkGLWidget.cpp +++ b/debugger/QT/SkGLWidget.cpp @@ -47,7 +47,8 @@ void SkGLWidget::initializeGL() { GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height()); desc.fOrigin = kBottomLeft_GrSurfaceOrigin; GrRenderTarget* curRenderTarget = fCurContext->wrapBackendRenderTarget(desc); - fGpuDevice = SkGpuDevice::Create(curRenderTarget); + fGpuDevice = SkGpuDevice::Create(curRenderTarget, + SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)); fCanvas = new SkCanvas(fGpuDevice); curRenderTarget->unref(); } @@ -65,7 +66,8 @@ void SkGLWidget::resizeGL(int w, int h) { GrRenderTarget* curRenderTarget = fCurContext->wrapBackendRenderTarget(desc); SkSafeUnref(fGpuDevice); SkSafeUnref(fCanvas); - fGpuDevice = SkGpuDevice::Create(curRenderTarget); + fGpuDevice = SkGpuDevice::Create(curRenderTarget, + SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)); fCanvas = new SkCanvas(fGpuDevice); } fDebugger->setWindowSize(w, h); |