blob: 35e4456c869e2681ef9c8aea0370d4e21b71e713 [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
djsollene4545212014-11-13 11:12:41 -080011#include "gl/SkGLContext.h"
robertphillips@google.com0da37192012-03-19 14:42:13 +000012
kkinnunen9e61bb72014-10-09 05:24:15 -070013class SkDebugGLContext : public SkGLContext {
robertphillips@google.com0da37192012-03-19 14:42:13 +000014public:
mtklein72c9faa2015-01-09 10:06:39 -080015 ~SkDebugGLContext() SK_OVERRIDE;
16 void makeCurrent() const SK_OVERRIDE {}
17 void swapBuffers() const SK_OVERRIDE {}
robertphillips@google.com0da37192012-03-19 14:42:13 +000018
kkinnunen30bc88c2014-10-15 23:03:54 -070019 static SkDebugGLContext* Create(GrGLStandard forcedGpuAPI) {
20 if (kGLES_GrGLStandard == forcedGpuAPI) {
21 return NULL;
22 }
23 return SkNEW(SkDebugGLContext);
24 }
25private:
26 SkDebugGLContext();
robertphillips@google.com0da37192012-03-19 14:42:13 +000027};
28
29#endif