diff options
author | 2016-05-04 13:49:13 -0700 | |
---|---|---|
committer | 2016-05-04 13:49:13 -0700 | |
commit | 345242671587d7273819bfe423be96e4392033e3 (patch) | |
tree | 7139d9f494699850865bd1925b2fe39a076718a6 /tools/viewer/win/Window_win.h | |
parent | 9b92ebdf41ed1fbd9ff598afad1804315ad62d46 (diff) |
Rename VulkanViewer to Viewer, take 2.
Also puts Window and Application in sk_app namespace.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1945103003
Review-Url: https://codereview.chromium.org/1945103003
Diffstat (limited to 'tools/viewer/win/Window_win.h')
-rw-r--r-- | tools/viewer/win/Window_win.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/viewer/win/Window_win.h b/tools/viewer/win/Window_win.h new file mode 100644 index 0000000000..e295212f31 --- /dev/null +++ b/tools/viewer/win/Window_win.h @@ -0,0 +1,37 @@ +/* +* 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_win_DEFINED +#define Window_win_DEFINED + +#include <windows.h> +#include "../Window.h" + +namespace sk_app { + +class Window_win : public Window { +public: + Window_win() : Window() {} + ~Window_win() override {} + + bool init(HINSTANCE instance); + + void setTitle(const char*) override; + void show() override; + + bool attach(BackEndType attachType, int msaaSampleCount) override; + + void inval() override; + +private: + HINSTANCE fHInstance; + HWND fHWnd; +}; + +} // namespace sk_app + +#endif |