diff options
author | bsalomon <bsalomon@google.com> | 2014-08-28 14:06:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-28 14:06:42 -0700 |
commit | 23b406cc040d55b45acc96e63db5c2d5c934a53c (patch) | |
tree | b1471b79afd558e318750c15f5f06c83b8a9b9bf /debugger | |
parent | b17c1291085e50819c0c46aae783067c30a67516 (diff) |
Make SkGpuDevice constructors private.
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/517033002
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/QT/SkGLWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp index 019654fe0d..602dc24fda 100644 --- a/debugger/QT/SkGLWidget.cpp +++ b/debugger/QT/SkGLWidget.cpp @@ -47,7 +47,7 @@ void SkGLWidget::initializeGL() { GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height()); desc.fOrigin = kBottomLeft_GrSurfaceOrigin; GrRenderTarget* curRenderTarget = fCurContext->wrapBackendRenderTarget(desc); - fGpuDevice = new SkGpuDevice(fCurContext, curRenderTarget); + fGpuDevice = SkGpuDevice::Create(curRenderTarget); fCanvas = new SkCanvas(fGpuDevice); curRenderTarget->unref(); } @@ -65,7 +65,7 @@ void SkGLWidget::resizeGL(int w, int h) { GrRenderTarget* curRenderTarget = fCurContext->wrapBackendRenderTarget(desc); SkSafeUnref(fGpuDevice); SkSafeUnref(fCanvas); - fGpuDevice = new SkGpuDevice(fCurContext, curRenderTarget); + fGpuDevice = SkGpuDevice::Create(curRenderTarget); fCanvas = new SkCanvas(fGpuDevice); } fDebugger->resize(w, h); |