blob: 7dca67f320d373679761742c2e38e891926305d0 [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:
kkinnunen30bc88c2014-10-15 23:03:54 -070015 virtual ~SkDebugGLContext() SK_OVERRIDE;
bsalomon944bcf02014-07-29 08:01:52 -070016 virtual void makeCurrent() const SK_OVERRIDE {}
17 virtual 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