Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Side by Side Diff: tools/viewer/sk_app/mac/Window_mac.h

Issue 2169543002: Use Windowing system-specific WindowContext factories. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: more xlib Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/mac/WindowContextFactory_mac.h ('k') | tools/viewer/sk_app/mac/Window_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698