3740972d02
Review URL: https://codereview.chromium.org/919783002
30 lines
569 B
C++
30 lines
569 B
C++
|
|
/*
|
|
* Copyright 2011 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef SkNullGLContext_DEFINED
|
|
#define SkNullGLContext_DEFINED
|
|
|
|
#include "gl/SkGLContext.h"
|
|
|
|
class SK_API SkNullGLContext : public SkGLContext {
|
|
public:
|
|
~SkNullGLContext() SK_OVERRIDE;
|
|
void makeCurrent() const SK_OVERRIDE;
|
|
void swapBuffers() const SK_OVERRIDE {};
|
|
|
|
static SkNullGLContext* Create(GrGLStandard);
|
|
|
|
class ContextState;
|
|
|
|
private:
|
|
SkNullGLContext();
|
|
|
|
ContextState* fState;
|
|
};
|
|
|
|
#endif
|