From 78cff136a4b59045e82965cbc9a63bf76a595796 Mon Sep 17 00:00:00 2001 From: kkinnunen Date: Sun, 21 Jun 2015 22:55:12 -0700 Subject: [PATCH] Make GrGLProgramDataManager not refcounted Make GrGLProgramDataManager not refcounted, refcounting is not used for the instances. Review URL: https://codereview.chromium.org/1195573002 --- src/gpu/gl/GrGLProgramDataManager.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpu/gl/GrGLProgramDataManager.h b/src/gpu/gl/GrGLProgramDataManager.h index f154313516..21ee9b5931 100644 --- a/src/gpu/gl/GrGLProgramDataManager.h +++ b/src/gpu/gl/GrGLProgramDataManager.h @@ -23,7 +23,7 @@ class GrGLProgramBuilder; * The resources are objects the program uses to communicate with the * application code. */ -class GrGLProgramDataManager : public SkRefCnt { +class GrGLProgramDataManager : SkNoncopyable { public: // Opaque handle to a uniform class ShaderResourceHandle { @@ -111,6 +111,7 @@ private: SkTArray fUniforms; GrGLGpu* fGpu; - typedef SkRefCnt INHERITED; + typedef SkNoncopyable INHERITED; }; + #endif