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

Side by Side Diff: tools/viewer/win/Window_win.cpp

Issue 1945103003: Rename VulkanViewer to Viewer, take 2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix android path Created 4 years, 7 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/win/Window_win.h ('k') | tools/viewer/win/main_win.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 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "Window_win.h" 8 #include "Window_win.h"
9 9
10 #include <tchar.h> 10 #include <tchar.h>
11 #include <windows.h> 11 #include <windows.h>
12 #include <windowsx.h> 12 #include <windowsx.h>
13 13
14 #include "SkUtils.h" 14 #include "SkUtils.h"
15 #include "VulkanTestContext_win.h" 15 #include "VulkanTestContext_win.h"
16 16
17 namespace sk_app {
18
17 Window* Window::CreateNativeWindow(void* platformData) { 19 Window* Window::CreateNativeWindow(void* platformData) {
18 HINSTANCE hInstance = (HINSTANCE)platformData; 20 HINSTANCE hInstance = (HINSTANCE)platformData;
19 21
20 Window_win* window = new Window_win(); 22 Window_win* window = new Window_win();
21 if (!window->init(hInstance)) { 23 if (!window->init(hInstance)) {
22 delete window; 24 delete window;
23 return nullptr; 25 return nullptr;
24 } 26 }
25 27
26 return window; 28 return window;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 platformData.fHWnd = fHWnd; 274 platformData.fHWnd = fHWnd;
273 275
274 fTestContext = VulkanTestContext::Create((void*)&platformData, msaaSampleCou nt); 276 fTestContext = VulkanTestContext::Create((void*)&platformData, msaaSampleCou nt);
275 277
276 return (SkToBool(fTestContext)); 278 return (SkToBool(fTestContext));
277 } 279 }
278 280
279 void Window_win::inval() { 281 void Window_win::inval() {
280 InvalidateRect(fHWnd, nullptr, false); 282 InvalidateRect(fHWnd, nullptr, false);
281 } 283 }
284
285 } // namespace sk_app
OLDNEW
« no previous file with comments | « tools/viewer/win/Window_win.h ('k') | tools/viewer/win/main_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698