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

Side by Side Diff: tests/common/win/testing_common.cc

Issue 329046: Splits the command buffers into common commands... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ::SetUnhandledExceptionFilter(LocalUnhandledExceptionFilter); 102 ::SetUnhandledExceptionFilter(LocalUnhandledExceptionFilter);
103 103
104 std::string error; 104 std::string error;
105 if (!o3d::RendererInstallCheck(&error)) { 105 if (!o3d::RendererInstallCheck(&error)) {
106 return false; 106 return false;
107 } 107 }
108 WNDCLASSEX wc = {0}; 108 WNDCLASSEX wc = {0};
109 109
110 wc.lpszClassName = L"MY_WINDOWS_CLASS"; 110 wc.lpszClassName = L"MY_WINDOWS_CLASS";
111 wc.cbSize = sizeof(WNDCLASSEX); 111 wc.cbSize = sizeof(WNDCLASSEX);
112 wc.style = CS_HREDRAW | CS_VREDRAW; 112 wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
113 wc.lpfnWndProc = ::WindowProc; 113 wc.lpfnWndProc = ::WindowProc;
114 wc.cbClsExtra = 0; 114 wc.cbClsExtra = 0;
115 wc.cbWndExtra = 0; 115 wc.cbWndExtra = 0;
116 wc.hInstance = instance; 116 wc.hInstance = instance;
117 wc.hIcon = ::LoadIcon(instance, IDI_APPLICATION); 117 wc.hIcon = ::LoadIcon(instance, IDI_APPLICATION);
118 wc.hIconSm = NULL; 118 wc.hIconSm = NULL;
119 wc.hCursor = ::LoadCursor(instance, IDC_ARROW); 119 wc.hCursor = ::LoadCursor(instance, IDC_ARROW);
120 wc.hbrBackground = static_cast<HBRUSH>(::GetStockObject(BLACK_BRUSH)); 120 wc.hbrBackground = static_cast<HBRUSH>(::GetStockObject(BLACK_BRUSH));
121 wc.lpszMenuName = NULL; 121 wc.lpszMenuName = NULL;
122 122
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 delete g_renderer; 238 delete g_renderer;
239 g_renderer = NULL; 239 g_renderer = NULL;
240 240
241 delete display_window; 241 delete display_window;
242 g_display_window = NULL; 242 g_display_window = NULL;
243 g_program_path = NULL; 243 g_program_path = NULL;
244 g_program_name = NULL; 244 g_program_name = NULL;
245 245
246 return ret; 246 return ret;
247 } 247 }
OLDNEW
« command_buffer/service/cross/common_decoder.cc ('K') | « command_buffer/service/cross/mocks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698