2011-10-27 20:44:19 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2014-11-13 19:12:41 +00:00
|
|
|
#include "gl/SkGLContext.h"
|
2011-10-27 20:44:19 +00:00
|
|
|
|
2014-10-09 12:24:15 +00:00
|
|
|
class SK_API SkNullGLContext : public SkGLContext {
|
2011-10-27 20:44:19 +00:00
|
|
|
public:
|
2015-03-26 01:17:31 +00:00
|
|
|
~SkNullGLContext() override;
|
2013-10-09 18:25:38 +00:00
|
|
|
|
2015-02-11 19:11:11 +00:00
|
|
|
static SkNullGLContext* Create(GrGLStandard);
|
|
|
|
|
2015-02-11 22:19:18 +00:00
|
|
|
class ContextState;
|
2014-10-16 06:03:54 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
SkNullGLContext();
|
2015-02-11 19:11:11 +00:00
|
|
|
|
2015-06-23 20:23:44 +00:00
|
|
|
void onPlatformMakeCurrent() const override;
|
|
|
|
void onPlatformSwapBuffers() const override {}
|
|
|
|
GrGLFuncPtr onPlatformGetProcAddress(const char*) const override { return NULL; }
|
|
|
|
|
2015-02-11 19:11:11 +00:00
|
|
|
ContextState* fState;
|
2011-10-27 20:44:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|