3 * Copyright 2012 Google Inc.
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
8 #ifndef SkDebugGLContext_DEFINED
9 #define SkDebugGLContext_DEFINED
11 #include "gl/SkGLContext.h"
13 class SkDebugGLContext : public SkGLContext {
15 ~SkDebugGLContext() override;
16 void makeCurrent() const override {}
17 void swapBuffers() const override {}
19 static SkDebugGLContext* Create(GrGLStandard forcedGpuAPI) {
20 if (kGLES_GrGLStandard == forcedGpuAPI) {
23 return SkNEW(SkDebugGLContext);