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

Side by Side Diff: tools/viewer/sk_app/mac/WindowContextFactory_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
« no previous file with comments | « tools/viewer/sk_app/mac/GLWindowContext_mac.cpp ('k') | tools/viewer/sk_app/mac/Window_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
9 #ifndef WindowContextFactory_mac_DEFINED
10 #define WindowContextFactory_mac_DEFINED
11
12 namespace sk_app {
13
14 class WindowContext;
15 struct DisplayParams;
16
17 namespace window_context_factory {
18
19 struct MacWindowInfo {
20 #if 0 // TODO: use Mac-specific objects
21 Display* fDisplay;
22 XWindow fWindow;
23 XVisualInfo* fVisualInfo;
24 #endif
25 };
26
27 inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams& ) {
28 // No Vulkan support on Mac.
29 return nullptr;
30 }
31
32 WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&);
33
34 } // namespace window_context_factory
35
36 } // namespace sk_app
37
38 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/mac/GLWindowContext_mac.cpp ('k') | tools/viewer/sk_app/mac/Window_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698