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

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

Issue 2167503002: Stub in Mac viewer code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Exclude Mac files from other Viewer builds Created 4 years, 5 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 | « gyp/viewer.gyp ('k') | tools/viewer/sk_app/mac/GLWindowContext_mac.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef GLWindowContext_unix_DEFINED 8 #ifndef GLWindowContext_mac_DEFINED
9 #define GLWindowContext_unix_DEFINED 9 #define GLWindowContext_mac_DEFINED
10 10
11 #include "../GLWindowContext.h" 11 #include "../GLWindowContext.h"
12 #include "Window_unix.h" 12 #include "Window_mac.h"
13 13
14 namespace sk_app { 14 namespace sk_app {
15 15
16 class GLWindowContext_unix : public GLWindowContext { 16 class GLWindowContext_mac : public GLWindowContext {
17 public: 17 public:
18 friend GLWindowContext* GLWindowContext::Create(void* platformData, const Di splayParams&); 18 friend GLWindowContext* GLWindowContext::Create(void* platformData, const Di splayParams&);
19 19
20 ~GLWindowContext_unix() override; 20 ~GLWindowContext_mac() override;
21 21
22 void onSwapBuffers() override; 22 void onSwapBuffers() override;
23 23
24 void onInitializeContext(void*, const DisplayParams&) override; 24 void onInitializeContext(void*, const DisplayParams&) override;
25 void onDestroyContext() override; 25 void onDestroyContext() override;
26 26
27 private: 27 private:
28 GLWindowContext_unix(void*, const DisplayParams&); 28 GLWindowContext_mac(void*, const DisplayParams&);
29 29
30 #if 0
31 // TODO: add Mac-specific GL display objects
30 Display* fDisplay; 32 Display* fDisplay;
31 XWindow fWindow; 33 XWindow fWindow;
32 XVisualInfo* fVisualInfo; 34 XVisualInfo* fVisualInfo;
33 GLXContext fGLContext; 35 GLXContext fGLContext;
36 #endif
34 }; 37 };
35 38
36 39
37 } 40 }
38 41
39 #endif 42 #endif
OLDNEW
« no previous file with comments | « gyp/viewer.gyp ('k') | tools/viewer/sk_app/mac/GLWindowContext_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698