diff options
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGLContext.h | 2 | ||||
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h index f86007a217..6016f6859a 100644 --- a/src/gpu/gl/GrGLContext.h +++ b/src/gpu/gl/GrGLContext.h @@ -20,7 +20,7 @@ struct GrContextOptions; * Encapsulates information about an OpenGL context including the OpenGL * version, the GrGLStandard type of the context, and GLSL version. */ -class GrGLContextInfo : public SkNoncopyable { +class GrGLContextInfo : public SkRefCnt { public: GrGLStandard standard() const { return fInterface->fStandard; } GrGLVersion version() const { return fGLVersion; } diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index 98d0ffcd33..4872db7309 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -109,8 +109,8 @@ public: const GrPipeline&, const GrBatchTracker&) const override; - virtual const GrGLInterface* glInterfaceForTesting() const { - return this->glInterface(); + const GrGLContext* glContextForTesting() const override { + return &this->glContext(); } private: @@ -300,7 +300,7 @@ private: void unbindTextureFromFBO(GrGLenum fboTarget); - SkAutoTDelete<GrGLContext> fGLContext; + SkAutoTUnref<GrGLContext> fGLContext; void createCopyProgram(); |