b5a94e3e24
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1814113002 Review URL: https://codereview.chromium.org/1814113002
27 lines
607 B
C++
27 lines
607 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() override;
|
|
static SkNullGLContext* Create();
|
|
|
|
private:
|
|
SkNullGLContext();
|
|
|
|
void onPlatformMakeCurrent() const override {};
|
|
void onPlatformSwapBuffers() const override {}
|
|
GrGLFuncPtr onPlatformGetProcAddress(const char*) const override { return nullptr; }
|
|
};
|
|
|
|
#endif
|