| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef Window_mac_DEFINED | 8 #ifndef Window_mac_DEFINED |
| 9 #define Window_mac_DEFINED | 9 #define Window_mac_DEFINED |
| 10 | 10 |
| 11 #include "../Window.h" | 11 #include "../Window.h" |
| 12 #include "SkChecksum.h" | 12 #include "SkChecksum.h" |
| 13 #include "SkTDynamicHash.h" | 13 #include "SkTDynamicHash.h" |
| 14 | 14 |
| 15 namespace sk_app { | 15 namespace sk_app { |
| 16 | 16 |
| 17 struct ContextPlatformData_mac { | |
| 18 #if 0 | |
| 19 // TODO: use Mac-specific objects | |
| 20 Display* fDisplay; | |
| 21 XWindow fWindow; | |
| 22 XVisualInfo* fVisualInfo; | |
| 23 #endif | |
| 24 }; | |
| 25 | |
| 26 class Window_mac : public Window { | 17 class Window_mac : public Window { |
| 27 public: | 18 public: |
| 28 Window_mac() : Window() | 19 Window_mac() : Window() |
| 29 #if 0 | 20 #if 0 |
| 30 // TODO: use Mac-specific objects | 21 // TODO: use Mac-specific objects |
| 31 , fDisplay(nullptr) | 22 , fDisplay(nullptr) |
| 32 , fWindow(0) | 23 , fWindow(0) |
| 33 , fGC(nullptr) | 24 , fGC(nullptr) |
| 34 , fVisualInfo(nullptr) | 25 , fVisualInfo(nullptr) |
| 35 #endif | 26 #endif |
| (...skipping 22 matching lines...) Expand all Loading... |
| 58 GC fGC; | 49 GC fGC; |
| 59 XVisualInfo* fVisualInfo; | 50 XVisualInfo* fVisualInfo; |
| 60 #endif | 51 #endif |
| 61 | 52 |
| 62 int fMSAASampleCount; | 53 int fMSAASampleCount; |
| 63 }; | 54 }; |
| 64 | 55 |
| 65 } // namespace sk_app | 56 } // namespace sk_app |
| 66 | 57 |
| 67 #endif | 58 #endif |
| OLD | NEW |