| OLD | NEW |
| (Empty) |
| 1 | |
| 2 /* | |
| 3 * Copyright 2016 Google Inc. | |
| 4 * | |
| 5 * Use of this source code is governed by a BSD-style license that can be | |
| 6 * found in the LICENSE file. | |
| 7 */ | |
| 8 #ifndef GLWindowContext_mac_DEFINED | |
| 9 #define GLWindowContext_mac_DEFINED | |
| 10 | |
| 11 #include "../GLWindowContext.h" | |
| 12 #include "Window_mac.h" | |
| 13 | |
| 14 namespace sk_app { | |
| 15 | |
| 16 class GLWindowContext_mac : public GLWindowContext { | |
| 17 public: | |
| 18 friend GLWindowContext* GLWindowContext::Create(void* platformData, const Di
splayParams&); | |
| 19 | |
| 20 ~GLWindowContext_mac() override; | |
| 21 | |
| 22 void onSwapBuffers() override; | |
| 23 | |
| 24 void onInitializeContext(void*, const DisplayParams&) override; | |
| 25 void onDestroyContext() override; | |
| 26 | |
| 27 private: | |
| 28 GLWindowContext_mac(void*, const DisplayParams&); | |
| 29 | |
| 30 #if 0 | |
| 31 // TODO: add Mac-specific GL display objects | |
| 32 Display* fDisplay; | |
| 33 XWindow fWindow; | |
| 34 XVisualInfo* fVisualInfo; | |
| 35 GLXContext fGLContext; | |
| 36 #endif | |
| 37 }; | |
| 38 | |
| 39 | |
| 40 } | |
| 41 | |
| 42 #endif | |
| OLD | NEW |