blob: 16621fc69675f848fa3176b64507d7e49bdabd74 [file] [log] [blame]
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkNullGLContext_DEFINED
#define SkNullGLContext_DEFINED
#include "SkGLContext.h"
class SK_API SkNullGLContext : public SkGLContext {
public:
SkNullGLContext() {};
virtual void makeCurrent() const SK_OVERRIDE {};
virtual void swapBuffers() const SK_OVERRIDE {};
protected:
virtual const GrGLInterface* createGLContext(GrGLStandard forcedGpuAPI) SK_OVERRIDE;
virtual void destroyGLContext() SK_OVERRIDE {};
};
#endif