6f70d43719
Reason for revert: red bots Original issue's description: > Move SkGLContext and some GrGLInterface implementations to skgputest module > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1815823002 > CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot > > Committed: https://skia.googlesource.com/skia/+/fe3456cb006110d045b26ff3f8681b893a757b58 TBR=jvanverth@google.com,bsalomon@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1845473004
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
|