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

Side by Side Diff: include/utils/SkWGL.h

Issue 12455009: Unify wgl context creation. (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 | « no previous file | src/gpu/gl/win/SkNativeGLContext_win.cpp » ('j') | src/utils/win/SkWGL_win.cpp » ('J')
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 "SkRefCnt.h" 9 #include "SkRefCnt.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 typedef BOOL (WINAPI *GetPixelFormatAttribfvProc)(HDC hdc, int, int, UINT, c onst int*, FLOAT*); 99 typedef BOOL (WINAPI *GetPixelFormatAttribfvProc)(HDC hdc, int, int, UINT, c onst int*, FLOAT*);
100 typedef HGLRC (WINAPI *CreateContextAttribsProc)(HDC hDC, HGLRC, const int * ); 100 typedef HGLRC (WINAPI *CreateContextAttribsProc)(HDC hDC, HGLRC, const int * );
101 101
102 GetExtensionsStringProc fGetExtensionsString; 102 GetExtensionsStringProc fGetExtensionsString;
103 ChoosePixelFormatProc fChoosePixelFormat; 103 ChoosePixelFormatProc fChoosePixelFormat;
104 GetPixelFormatAttribfvProc fGetPixelFormatAttribfv; 104 GetPixelFormatAttribfvProc fGetPixelFormatAttribfv;
105 GetPixelFormatAttribivProc fGetPixelFormatAttribiv; 105 GetPixelFormatAttribivProc fGetPixelFormatAttribiv;
106 CreateContextAttribsProc fCreateContextAttribs; 106 CreateContextAttribsProc fCreateContextAttribs;
107 }; 107 };
108 108
109 /**
110 * Helper to create an OpenGL context for a DC using WGL. Configs with a sample count >= to
111 * msaaSampleCount are preferred but if none is available then a context with a lower sample count
112 * (including non-MSAA) will be created. If preferCoreProfile is true but a core profile cannot be
113 * created then a compatible profile context will be created.
114 */
115 HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile);
116
109 #endif 117 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/win/SkNativeGLContext_win.cpp » ('j') | src/utils/win/SkWGL_win.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698