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

Side by Side Diff: tools/viewer/sk_app/unix/WindowContextFactory_unix.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
(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_unix_DEFINED
10 #define WindowContextFactory_unix_DEFINED
11
12 #include <X11/Xlib.h>
13 #include <GL/glx.h>
14 typedef Window XWindow;
15
16 namespace sk_app {
17
18 class WindowContext;
19 struct DisplayParams;
20
21 namespace window_context_factory {
22
23 struct XlibWindowInfo {
24 Display* fDisplay;
25 XWindow fWindow;
26 XVisualInfo* fVisualInfo;
27 };
28
29 WindowContext* NewVulkanForXlib(const XlibWindowInfo&, const DisplayParams&);
30
31 WindowContext* NewGLForXlib(const XlibWindowInfo&, const DisplayParams&);
32
33 } // namespace window_context_factory
34
35 } // namespace sk_app
36
37 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/unix/VulkanWindowContext_unix.cpp ('k') | tools/viewer/sk_app/unix/Window_unix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698