blob: 7db957961746ed3a5212f005443ef334481c959d [file] [log] [blame]
robertphillips@google.com0da37192012-03-19 14:42:13 +00001
2/*
3 * Copyright 2012 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8#ifndef SkDebugGLContext_DEFINED
9#define SkDebugGLContext_DEFINED
10
bsalomon10805962014-10-08 04:45:09 -070011#include "SkGLContextHelper.h"
robertphillips@google.com0da37192012-03-19 14:42:13 +000012
bsalomon10805962014-10-08 04:45:09 -070013class SkDebugGLContext : public SkGLContextHelper {
robertphillips@google.com0da37192012-03-19 14:42:13 +000014
15public:
bsalomon944bcf02014-07-29 08:01:52 -070016 SkDebugGLContext() {}
robertphillips@google.com0da37192012-03-19 14:42:13 +000017
bsalomon944bcf02014-07-29 08:01:52 -070018 virtual void makeCurrent() const SK_OVERRIDE {}
19 virtual void swapBuffers() const SK_OVERRIDE {}
robertphillips@google.com0da37192012-03-19 14:42:13 +000020
21protected:
kkinnunen80549fc2014-06-30 06:36:31 -070022 virtual const GrGLInterface* createGLContext(GrGLStandard forcedGpuAPI) SK_OVERRIDE;
robertphillips@google.com0da37192012-03-19 14:42:13 +000023
24 virtual void destroyGLContext() SK_OVERRIDE {};
25};
26
27#endif