180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru/* 380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * Copyright 2012 Google Inc. 480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * 580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * Use of this source code is governed by a BSD-style license that can be 680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru * found in the LICENSE file. 780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru */ 880bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#ifndef SkDebugGLContext_DEFINED 980bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#define SkDebugGLContext_DEFINED 1080bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 11096defe64d408e54474fe19f418c95bf1a554fc7Derek Sollenberger#include "SkGLContextHelper.h" 1280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 13096defe64d408e54474fe19f418c95bf1a554fc7Derek Sollenbergerclass SkDebugGLContext : public SkGLContextHelper { 1480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 1580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Querupublic: 1680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru SkDebugGLContext() {}; 1780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 1880bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru virtual void makeCurrent() const SK_OVERRIDE {}; 190a657bbc2c6fc9daf699942e023050536d5ec95fDerek Sollenberger virtual void swapBuffers() const SK_OVERRIDE {}; 2080bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 2180bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queruprotected: 2280bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru virtual const GrGLInterface* createGLContext() SK_OVERRIDE; 2380bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 2480bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru virtual void destroyGLContext() SK_OVERRIDE {}; 2580bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru}; 2680bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru 2780bacfeb4bda06541e8695bd502229727bccfeaJean-Baptiste Queru#endif 28