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

Side by Side Diff: src/utils/win/SkWGL_win.cpp

Issue 12536008: Enable init'ed but unused var warning on windows for closer parity with mac/linux warnings. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/ports/SkFontHost_win.cpp ('k') | src/views/win/SkOSWindow_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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkWGL.h" 9 #include "SkWGL.h"
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 if (SetPixelFormat(dc, formatToTry, &pfd)) { 324 if (SetPixelFormat(dc, formatToTry, &pfd)) {
325 format = formatToTry; 325 format = formatToTry;
326 } 326 }
327 } 327 }
328 328
329 if (0 == format) { 329 if (0 == format) {
330 // Either MSAA wasn't requested or creation failed 330 // Either MSAA wasn't requested or creation failed
331 unsigned int num; 331 unsigned int num;
332 extensions.choosePixelFormat(dc, iAttrs, fAttrs, 1, &format, &num); 332 extensions.choosePixelFormat(dc, iAttrs, fAttrs, 1, &format, &num);
333 DescribePixelFormat(dc, format, sizeof(pfd), &pfd); 333 DescribePixelFormat(dc, format, sizeof(pfd), &pfd);
334 BOOL set = SetPixelFormat(dc, format, &pfd); 334 SkDEBUGCODE(BOOL set =) SetPixelFormat(dc, format, &pfd);
335 SkASSERT(TRUE == set); 335 SkASSERT(TRUE == set);
336 } 336 }
337 337
338 HGLRC glrc = NULL; 338 HGLRC glrc = NULL;
339 if (preferCoreProfile && extensions.hasExtension(dc, "WGL_ARB_create_context ")) { 339 if (preferCoreProfile && extensions.hasExtension(dc, "WGL_ARB_create_context ")) {
340 static const int kCoreGLVersions[] = { 340 static const int kCoreGLVersions[] = {
341 4, 3, 341 4, 3,
342 4, 2, 342 4, 2,
343 4, 1, 343 4, 1,
344 4, 0, 344 4, 0,
(...skipping 17 matching lines...) Expand all
362 } 362 }
363 363
364 if (NULL == glrc) { 364 if (NULL == glrc) {
365 glrc = wglCreateContext(dc); 365 glrc = wglCreateContext(dc);
366 } 366 }
367 SkASSERT(glrc); 367 SkASSERT(glrc);
368 368
369 wglMakeCurrent(prevDC, prevGLRC); 369 wglMakeCurrent(prevDC, prevGLRC);
370 return glrc; 370 return glrc;
371 } 371 }
OLDNEW
« no previous file with comments | « src/ports/SkFontHost_win.cpp ('k') | src/views/win/SkOSWindow_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698