diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-05 19:13:09 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-05 19:13:09 +0000 |
commit | b7f20f20ac4d87819789211aec5935ec1b83ffcd (patch) | |
tree | 97ecd4fcedfa130ea0f63b15ad1abc8a125bd256 /include/utils | |
parent | 77472f06f88b85e85fb690584c85d0a42e74b685 (diff) |
Unify wgl context creation.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/12455009
git-svn-id: http://skia.googlecode.com/svn/trunk@7990 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/SkWGL.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/utils/SkWGL.h b/include/utils/SkWGL.h index 619b8e0ff1..3d941742bf 100644 --- a/include/utils/SkWGL.h +++ b/include/utils/SkWGL.h @@ -106,4 +106,12 @@ private: CreateContextAttribsProc fCreateContextAttribs; }; +/** + * Helper to create an OpenGL context for a DC using WGL. Configs with a sample count >= to + * msaaSampleCount are preferred but if none is available then a context with a lower sample count + * (including non-MSAA) will be created. If preferCoreProfile is true but a core profile cannot be + * created then a compatible profile context will be created. + */ +HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile); + #endif |