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

Side by Side Diff: tools/viewer/sk_app/mac/Window_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 | « tools/viewer/sk_app/mac/GLWindowContext_mac.cpp ('k') | tools/viewer/sk_app/mac/Window_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
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef Window_mac_DEFINED
9 #define Window_mac_DEFINED
10
11 #include "../Window.h"
12 #include "SkChecksum.h"
13 #include "SkTDynamicHash.h"
14
15 namespace sk_app {
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 {
27 public:
28 Window_mac() : Window()
29 #if 0
30 // TODO: use Mac-specific objects
31 , fDisplay(nullptr)
32 , fWindow(0)
33 , fGC(nullptr)
34 , fVisualInfo(nullptr)
35 #endif
36 , fMSAASampleCount(0) {}
37 ~Window_mac() override { this->closeWindow(); }
38
39 #if 0
40 // TODO: need to init with Mac-specific data
41 bool initWindow(Display* display, const DisplayParams* params);
42 #endif
43
44 void setTitle(const char*) override;
45 void show() override;
46
47 bool attach(BackendType attachType, const DisplayParams& params) override;
48
49 void onInval() override;
50
51 private:
52 void closeWindow();
53
54 #if 0
55 // TODO: use Mac-specific window data
56 Display* fDisplay;
57 XWindow fWindow;
58 GC fGC;
59 XVisualInfo* fVisualInfo;
60 #endif
61
62 int fMSAASampleCount;
63 };
64
65 } // namespace sk_app
66
67 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/mac/GLWindowContext_mac.cpp ('k') | tools/viewer/sk_app/mac/Window_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698