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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/mac/Window_mac.h
diff --git a/tools/viewer/sk_app/mac/Window_mac.h b/tools/viewer/sk_app/mac/Window_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..016b13446573a5524acb060c330c51dc0939275b
--- /dev/null
+++ b/tools/viewer/sk_app/mac/Window_mac.h
@@ -0,0 +1,67 @@
+/*
+* Copyright 2016 Google Inc.
+*
+* Use of this source code is governed by a BSD-style license that can be
+* found in the LICENSE file.
+*/
+
+#ifndef Window_mac_DEFINED
+#define Window_mac_DEFINED
+
+#include "../Window.h"
+#include "SkChecksum.h"
+#include "SkTDynamicHash.h"
+
+namespace sk_app {
+
+struct ContextPlatformData_mac {
+#if 0
+ // TODO: use Mac-specific objects
+ Display* fDisplay;
+ XWindow fWindow;
+ XVisualInfo* fVisualInfo;
+#endif
+};
+
+class Window_mac : public Window {
+public:
+ Window_mac() : Window()
+#if 0
+ // TODO: use Mac-specific objects
+ , fDisplay(nullptr)
+ , fWindow(0)
+ , fGC(nullptr)
+ , fVisualInfo(nullptr)
+#endif
+ , fMSAASampleCount(0) {}
+ ~Window_mac() override { this->closeWindow(); }
+
+#if 0
+ // TODO: need to init with Mac-specific data
+ bool initWindow(Display* display, const DisplayParams* params);
+#endif
+
+ void setTitle(const char*) override;
+ void show() override;
+
+ bool attach(BackendType attachType, const DisplayParams& params) override;
+
+ void onInval() override;
+
+private:
+ void closeWindow();
+
+#if 0
+ // TODO: use Mac-specific window data
+ Display* fDisplay;
+ XWindow fWindow;
+ GC fGC;
+ XVisualInfo* fVisualInfo;
+#endif
+
+ int fMSAASampleCount;
+};
+
+} // namespace sk_app
+
+#endif
« 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