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

Unified Diff: debugger/QT/SkGLWidget.cpp

Issue 588143004: Introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove RenderTargetFlags from legacy mode Created 6 years, 3 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 | dm/DMGpuSupport.h » ('j') | 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 dece6419ab1c38ac68b8c31d6f06eefb14457e12..bd24d4e3cbcc85617b6974d1fd6444fb077e2dd5 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);
« no previous file with comments | « no previous file | dm/DMGpuSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698