From 3d6801eeee6b036de9f8d09e2ae8fa99df5a397c Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Mon, 11 Dec 2017 10:06:31 -0500 Subject: Add GrGLMakeNativeInterface factory that returns sk_sp. Removes the concept of a configurable "default" interface and makes the default always be the "native" interface. Also removes unused functions: GrGLInterfaceAddTestDebugMarker and GrGLInterface::NewClone. Keeps around legacy GrGLCreateNativeInterface() until clients can be weened. Change-Id: I4a3bdafa8cf8c68ed13318393abd55686b045ccb Reviewed-on: https://skia-review.googlesource.com/83000 Reviewed-by: Robert Phillips Commit-Queue: Brian Salomon --- debugger/QT/SkGLWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debugger') diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp index 98874d280d..f80ffaf848 100644 --- a/debugger/QT/SkGLWidget.cpp +++ b/debugger/QT/SkGLWidget.cpp @@ -27,7 +27,7 @@ void SkGLWidget::setSampleCount(int sampleCount) { void SkGLWidget::initializeGL() { if (!fCurIntf) { - fCurIntf.reset(GrGLCreateNativeInterface()); + fCurIntf = GrGLMakeNativeInterface(); } if (!fCurIntf) { return; -- cgit v1.2.3