| Index: include/utils/SkWGL.h
|
| diff --git a/include/utils/SkWGL.h b/include/utils/SkWGL.h
|
| index 5f630a16892a48d6a9debaf22983b96066f246df..5272f17c87088b58ef3148824c0ca82de962e8c9 100644
|
| --- a/include/utils/SkWGL.h
|
| +++ b/include/utils/SkWGL.h
|
| @@ -104,12 +104,22 @@ private:
|
| CreateContextAttribsProc fCreateContextAttribs;
|
| };
|
|
|
| +enum SkWGLContextRequest {
|
| + /** Requests to create core profile context if possible, otherwise
|
| + compatibility profile. */
|
| + kGLPreferCoreProfile_SkWGLContextRequest,
|
| + /** Requests to create compatibility profile context if possible, otherwise
|
| + core profile. */
|
| + kGLPreferCompatibilityProfile_SkWGLContextRequest,
|
| + /** Requests to create GL ES profile context. */
|
| + kGLES_SkWGLContextRequest
|
| +};
|
| /**
|
| * 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);
|
| +HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, SkWGLContextRequest context);
|
|
|
| #endif
|
|
|