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