1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/include/gpu/gl/SkDebugGLContext.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2012 Google Inc. 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 +#ifndef SkDebugGLContext_DEFINED 1.12 +#define SkDebugGLContext_DEFINED 1.13 + 1.14 +#include "SkGLContextHelper.h" 1.15 + 1.16 +class SkDebugGLContext : public SkGLContextHelper { 1.17 + 1.18 +public: 1.19 + SkDebugGLContext() {}; 1.20 + 1.21 + virtual void makeCurrent() const SK_OVERRIDE {}; 1.22 + virtual void swapBuffers() const SK_OVERRIDE {}; 1.23 + 1.24 +protected: 1.25 + virtual const GrGLInterface* createGLContext() SK_OVERRIDE; 1.26 + 1.27 + virtual void destroyGLContext() SK_OVERRIDE {}; 1.28 +}; 1.29 + 1.30 +#endif