OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2012 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 #ifndef SkDebugGLContext_DEFINED | |
8 #define SkDebugGLContext_DEFINED | |
9 | |
10 #include "gl/SkGLContext.h" | |
11 | |
12 class SkDebugGLContext : public SkGLContext { | |
13 public: | |
14 ~SkDebugGLContext() override; | |
15 | |
16 static SkDebugGLContext* Create() { | |
17 return new SkDebugGLContext; | |
18 } | |
19 private: | |
20 void onPlatformMakeCurrent() const override {} | |
21 void onPlatformSwapBuffers() const override {} | |
22 GrGLFuncPtr onPlatformGetProcAddress(const char*) const override { return nu
llptr; } | |
23 | |
24 SkDebugGLContext(); | |
25 }; | |
26 | |
27 #endif | |
OLD | NEW |