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

Unified Diff: include/utils/SkWGL.h

Issue 341433007: Revert of Support using OpenGL ES context on desktop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/gl/SkNullGLContext.h ('k') | src/gpu/gl/GrGLAssembleGLESInterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/utils/SkWGL.h
diff --git a/include/utils/SkWGL.h b/include/utils/SkWGL.h
index 5272f17c87088b58ef3148824c0ca82de962e8c9..5f630a16892a48d6a9debaf22983b96066f246df 100644
--- a/include/utils/SkWGL.h
+++ b/include/utils/SkWGL.h
@@ -104,22 +104,12 @@
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, SkWGLContextRequest context);
+HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile);
#endif
« no previous file with comments | « include/gpu/gl/SkNullGLContext.h ('k') | src/gpu/gl/GrGLAssembleGLESInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698