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

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

Issue 1873453002: Some more improvements/fixes to the VulkanViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 8 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/vulkan/win/Window_win.h ('k') | tools/vulkan/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>
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 void Window_win::setTitle(const char* title) { 256 void Window_win::setTitle(const char* title) {
257 SetWindowTextA(fHWnd, title); 257 SetWindowTextA(fHWnd, title);
258 } 258 }
259 259
260 void Window_win::show() { 260 void Window_win::show() {
261 ShowWindow(fHWnd, SW_SHOW); 261 ShowWindow(fHWnd, SW_SHOW);
262 } 262 }
263 263
264 264
265 bool Window_win::attach(BackEndTypes attachType, int msaaSampleCount, Attachment Info*) { 265 bool Window_win::attach(BackEndType attachType, int msaaSampleCount, AttachmentI nfo*) {
266 if (kVulkan_BackendType != attachType) { 266 if (kVulkan_BackendType != attachType) {
267 return false; 267 return false;
268 } 268 }
269 269
270 ContextPlatformData_win platformData; 270 ContextPlatformData_win platformData;
271 platformData.fHInstance = fHInstance; 271 platformData.fHInstance = fHInstance;
272 platformData.fHWnd = fHWnd; 272 platformData.fHWnd = fHWnd;
273 273
274 fTestContext = VulkanTestContext::Create((void*)&platformData, msaaSampleCou nt); 274 fTestContext = VulkanTestContext::Create((void*)&platformData, msaaSampleCou nt);
275 275
276 return (SkToBool(fTestContext)); 276 return (SkToBool(fTestContext));
277 } 277 }
OLDNEW
« no previous file with comments | « tools/vulkan/win/Window_win.h ('k') | tools/vulkan/win/main_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698